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