bugfix for :NERDTree when a file bookmark is given
This commit is contained in:
parent
f7e8c453ea
commit
b60bcb6cb2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user