Fix for getting line of node

Set curPathComponent to 0 correctly identify with indent level of node.
This commit is contained in:
Ivan Necas 2011-03-20 14:25:41 +01:00
parent 1dd345c56d
commit 7f5a8c3aac

View File

@ -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'})