commit b60bcb6cb242b1d3d5184646bf18fec2d48616b0
parent f7e8c453ea8d7fca80d3891c143742922070b5f2
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Fri, 13 Jun 2008 13:01:05 +1200
bugfix for :NERDTree when a file bookmark is given
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1467,9 +1467,9 @@ function! s:InitNerdTree(name)
call s:Echo("No bookmark or directory found for: " . a:name)
return
endtry
- if !path.isDirectory
- let path = path.GetParent()
- endif
+ endif
+ if !path.isDirectory
+ let path = path.GetParent()
endif
"if instructed to, then change the vim CWD to the dir the NERDTree is