Skip to content

Commit

Permalink
Fix for getting line of node
Browse files Browse the repository at this point in the history
Set curPathComponent to 0 correctly identify with indent level of node.
  • Loading branch information
iNecas committed Mar 20, 2011
1 parent 1dd345c commit 7f5a8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/NERD_tree.vim
Expand Up @@ -991,7 +991,7 @@ function! s:TreeFileNode.getLineNum()
"the path components we have matched so far "the path components we have matched so far
let pathcomponents = [substitute(b:NERDTreeRoot.path.str({'format': 'UI'}), '/ *$', '', '')] let pathcomponents = [substitute(b:NERDTreeRoot.path.str({'format': 'UI'}), '/ *$', '', '')]
"the index of the component we are searching for "the index of the component we are searching for
let curPathComponent = 1 let curPathComponent = 0


let fullpath = self.path.str({'format': 'UI'}) let fullpath = self.path.str({'format': 'UI'})


Expand Down

0 comments on commit 7f5a8c3

Please sign in to comment.