mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
comment and tweak the <LeftRelease> fix in 24561ad
This commit is contained in:
@@ -79,9 +79,16 @@ endfunction
|
|||||||
"If a keymap has the scope of "all" then it will be called if no other keymap
|
"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.
|
"is found for a:key and the scope.
|
||||||
function! s:KeyMap.Invoke(key)
|
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 {}
|
return {}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let node = g:NERDTreeFileNode.GetSelected()
|
let node = g:NERDTreeFileNode.GetSelected()
|
||||||
if !empty(node)
|
if !empty(node)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user