Fix tooltip command display when command has no keybinding

This commit is contained in:
Ben Ogle
2014-12-02 16:31:38 -08:00
parent 0aa3cd58c1
commit 37e6f03346
2 changed files with 10 additions and 2 deletions

View File

@@ -36,9 +36,10 @@ class TooltipManager
if keyBindingCommand?
bindings = atom.keymaps.findKeyBindings(command: keyBindingCommand, target: keyBindingTarget)
if options.title?
keystroke = getKeystroke(bindings)
if options.title? and keystroke?
options.title += " " + getKeystroke(bindings)
else
else if keystroke?
options.title = getKeystroke(bindings)
$target = $(target)