commit 2a769a726376c932581bf6701d92a780501845a6
parent 0ee888ee17cbc8a452bd69f34e8ca6c0788b3124
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Wed, 2 Jul 2014 20:49:59 +0100
Merge pull request #298 from buggo/master
Fix error 121 when clicking on command line below another window
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/nerdtree/key_map.vim b/lib/nerdtree/key_map.vim
@@ -79,6 +79,9 @@ endfunction
"If a keymap has the scope of "all" then it will be called if no other keymap
"is found for a:key and the scope.
function! s:KeyMap.Invoke(key)
+ if !exists('b:NERDTreeRoot')
+ return {}
+ endif
let node = g:NERDTreeFileNode.GetSelected()
if !empty(node)