Permalink
Browse files

bugfix for :NERDTree when a file bookmark is given

  • Loading branch information...
1 parent f7e8c45 commit b60bcb6cb242b1d3d5184646bf18fec2d48616b0 @scrooloose committed Jun 13, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugin/NERD_tree.vim
View
@@ -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

0 comments on commit b60bcb6

Please sign in to comment.