From b60bcb6cb242b1d3d5184646bf18fec2d48616b0 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 13 Jun 2008 13:01:05 +1200 Subject: [PATCH] bugfix for :NERDTree when a file bookmark is given --- plugin/NERD_tree.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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