Browse Source

Merge pull request #150 from cperl82/issue-144

Replace virtcol() with len() in handleLeftClick().
Martin Grenfell 6 years ago
parent
commit
d62180d0ff
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      plugin/NERD_tree.vim

+ 1
- 1
plugin/NERD_tree.vim View File

@@ -4134,7 +4134,7 @@ function! s:handleLeftClick()
4134 4134
         "take the line substring manually
4135 4135
         let line = split(getline(line(".")), '\zs')
4136 4136
         let startToCur = ""
4137
-        for i in range(0,virtcol(".")-1)
4137
+        for i in range(0,len(line)-1)
4138 4138
             let startToCur .= line[i]
4139 4139
         endfor
4140 4140