nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit d62180d0ff26d308b815205ca2f2cd651a112b49
parent bf79e223aefe0665bcc62b5dcc4c2c23c6f23fc5
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Mon, 15 Oct 2012 05:55:21 -0700

Merge pull request #150 from cperl82/issue-144

Replace virtcol() with len() in handleLeftClick().
Diffstat:
Mplugin/NERD_tree.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -4134,7 +4134,7 @@ function! s:handleLeftClick()
         "take the line substring manually
         let line = split(getline(line(".")), '\zs')
         let startToCur = ""
-        for i in range(0,virtcol(".")-1)
+        for i in range(0,len(line)-1)
             let startToCur .= line[i]
         endfor