From 7f5a8c3aac51ff46e6a8c298c8f3281de1d99827 Mon Sep 17 00:00:00 2001 From: Ivan Necas Date: Sun, 20 Mar 2011 14:25:41 +0100 Subject: [PATCH] Fix for getting line of node Set curPathComponent to 0 correctly identify with indent level of node. --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 5612e81..3ad4315 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -991,7 +991,7 @@ function! s:TreeFileNode.getLineNum() "the path components we have matched so far let pathcomponents = [substitute(b:NERDTreeRoot.path.str({'format': 'UI'}), '/ *$', '', '')] "the index of the component we are searching for - let curPathComponent = 1 + let curPathComponent = 0 let fullpath = self.path.str({'format': 'UI'})