Merge pull request #298 from buggo/master

Fix error 121 when clicking on command line below another window
This commit is contained in:
Martin Grenfell 2014-07-02 20:49:59 +01:00
commit 2a769a7263

View File

@ -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)