Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window.

This commit is contained in:
Rickard Karlsson 2013-11-05 12:17:28 +01:00
parent b0bb781fc7
commit 24561ad59c

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)