Skip to content

Commit 0438fe8

Browse files
committed
Fix issue with NERDTreeFind opening the tree properly but not moving the cursor to the found file.
1 parent 3bb112d commit 0438fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/NERD_tree.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ function! s:TreeFileNode.getLineNum()
992992
"the path components we have matched so far
993993
let pathcomponents = [substitute(b:NERDTreeRoot.path.str({'format': 'UI'}), '/ *$', '', '')]
994994
"the index of the component we are searching for
995-
let curPathComponent = 1
995+
let curPathComponent = 0
996996

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

0 commit comments

Comments
 (0)