nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit d162c08fd7fa618d0f576a02134a54799adbc772
parent 2a769a726376c932581bf6701d92a780501845a6
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Wed,  2 Jul 2014 20:54:14 +0100

comment and tweak the <LeftRelease> fix in 24561ad

Diffstat:
Mlib/nerdtree/key_map.vim | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lib/nerdtree/key_map.vim b/lib/nerdtree/key_map.vim
@@ -79,9 +79,16 @@ 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')
+
+    "required because clicking the command window below another window still
+    "invokes the <LeftRelease> mapping - but changes the window cursor
+    "is in first
+    "
+    "TODO: remove this check when the vim bug is fixed
+    if !nerdtree#treeExistsForBuf()
         return {}
     endif
+
     let node = g:NERDTreeFileNode.GetSelected()
     if !empty(node)