Browse files

Fix for getting line of node

Set curPathComponent to 0 correctly identify with indent level of node.
  • Loading branch information...
1 parent 1dd345c commit 7f5a8c3aac51ff46e6a8c298c8f3281de1d99827 @iNecas iNecas committed Mar 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/NERD_tree.vim
View
2 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'})

0 comments on commit 7f5a8c3

Please sign in to comment.