mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-23 16:34:56 +08:00
make a small fix for the left mouse button
This commit is contained in:
parent
4425627683
commit
aca917b4ca
|
@ -3876,7 +3876,7 @@ function! s:handleLeftClick()
|
||||||
if (g:NERDTreeMouseMode ==# 2 && currentNode.path.isDirectory) || g:NERDTreeMouseMode ==# 3
|
if (g:NERDTreeMouseMode ==# 2 && currentNode.path.isDirectory) || g:NERDTreeMouseMode ==# 3
|
||||||
let char = strpart(startToCur, strlen(startToCur)-1, 1)
|
let char = strpart(startToCur, strlen(startToCur)-1, 1)
|
||||||
if char !~# s:tree_markup_reg
|
if char !~# s:tree_markup_reg
|
||||||
call s:activateAll()
|
call s:activateNode(currentNode)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user