make a small fix for the left mouse button

This commit is contained in:
Martin Grenfell 2012-01-04 00:13:38 +00:00
parent 4425627683
commit aca917b4ca

View File

@ -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