Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix for getting line of node

Set curPathComponent to 0 correctly identify with indent level of node.
  • Loading branch information...
commit 7f5a8c3aac51ff46e6a8c298c8f3281de1d99827 1 parent 1dd345c
Ivan Necas iNecas authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  plugin/NERD_tree.vim
2  plugin/NERD_tree.vim
@@ -991,7 +991,7 @@ function! s:TreeFileNode.getLineNum()
991 991 "the path components we have matched so far
992 992 let pathcomponents = [substitute(b:NERDTreeRoot.path.str({'format': 'UI'}), '/ *$', '', '')]
993 993 "the index of the component we are searching for
994   - let curPathComponent = 1
  994 + let curPathComponent = 0
995 995
996 996 let fullpath = self.path.str({'format': 'UI'})
997 997

0 comments on commit 7f5a8c3

Please sign in to comment.
Something went wrong with that request. Please try again.