mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-27 02:33:35 +08:00
fix Bookmark so it uses the new TreeFileNode.open method
This commit is contained in:
parent
b7cdc191ca
commit
9832d4a84a
|
@ -192,13 +192,15 @@ endif
|
|||
"============================================================
|
||||
let s:Bookmark = {}
|
||||
" FUNCTION: Bookmark.activate() {{{3
|
||||
function! s:Bookmark.activate()
|
||||
function! s:Bookmark.activate(...)
|
||||
let opts = a:0 ? a:1 : {}
|
||||
|
||||
if self.path.isDirectory
|
||||
call self.toRoot()
|
||||
else
|
||||
if self.validate()
|
||||
let n = s:TreeFileNode.New(self.path)
|
||||
call n.open()
|
||||
call n.open(opts)
|
||||
call s:closeTreeIfQuitOnOpen()
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user