mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
Merge pull request #150 from cperl82/issue-144
Replace virtcol() with len() in handleLeftClick().
This commit is contained in:
@@ -4134,7 +4134,7 @@ function! s:handleLeftClick()
|
|||||||
"take the line substring manually
|
"take the line substring manually
|
||||||
let line = split(getline(line(".")), '\zs')
|
let line = split(getline(line(".")), '\zs')
|
||||||
let startToCur = ""
|
let startToCur = ""
|
||||||
for i in range(0,virtcol(".")-1)
|
for i in range(0,len(line)-1)
|
||||||
let startToCur .= line[i]
|
let startToCur .= line[i]
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user