diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 7c1f0d8..61cfe63 100644 --- 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