mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 12:23:49 -05:00
bugfix for the mouse handling function
previously the mouse handling function was not passing the needed argument to the ActivateNode function
This commit is contained in:
@@ -2945,14 +2945,14 @@ function! s:CheckForActivate()
|
|||||||
if currentNode.path.isDirectory
|
if currentNode.path.isDirectory
|
||||||
let reg = '^' . s:tree_markup_reg .'*[~+]$'
|
let reg = '^' . s:tree_markup_reg .'*[~+]$'
|
||||||
if startToCur =~ reg
|
if startToCur =~ reg
|
||||||
call s:ActivateNode()
|
call s:ActivateNode(0)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (g:NERDTreeMouseMode == 2 && currentNode.path.isDirectory) || g:NERDTreeMouseMode == 3
|
if (g:NERDTreeMouseMode == 2 && currentNode.path.isDirectory) || g:NERDTreeMouseMode == 3
|
||||||
if char !~ s:tree_markup_reg && startToCur !~ '\/$'
|
if char !~ s:tree_markup_reg && startToCur !~ '\/$'
|
||||||
call s:ActivateNode()
|
call s:ActivateNode(0)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user