nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 24561ad59c092f245264135cb24895b3dab1da26
parent b0bb781fc73ef40365e4c996a16f04368d64fc9d
Author: Rickard Karlsson <rickard.karlsson@sogeti.se>
Date:   Tue,  5 Nov 2013 12:17:28 +0100

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

Diffstat:
Mlib/nerdtree/key_map.vim | 3+++
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)