diff --git a/lib/nerdtree/ui.vim b/lib/nerdtree/ui.vim index 1e74657..196d745 100644 --- a/lib/nerdtree/ui.vim +++ b/lib/nerdtree/ui.vim @@ -158,6 +158,10 @@ function! s:UI.getPath(ln) return self.nerdtree.root.path.getParent() endif + if a:ln < rootLine + return {} + endif + let indent = self._indentLevelFor(line) " remove the tree parts and the leading space