mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -05:00
bugfix for :NERDTree when a file bookmark is given
This commit is contained in:
@@ -1467,10 +1467,10 @@ function! s:InitNerdTree(name)
|
|||||||
call s:Echo("No bookmark or directory found for: " . a:name)
|
call s:Echo("No bookmark or directory found for: " . a:name)
|
||||||
return
|
return
|
||||||
endtry
|
endtry
|
||||||
|
endif
|
||||||
if !path.isDirectory
|
if !path.isDirectory
|
||||||
let path = path.GetParent()
|
let path = path.GetParent()
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
"if instructed to, then change the vim CWD to the dir the NERDTree is
|
"if instructed to, then change the vim CWD to the dir the NERDTree is
|
||||||
"inited in
|
"inited in
|
||||||
|
|||||||
Reference in New Issue
Block a user