mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
minor refactor to Bookmark#toRoot()
This commit is contained in:
@@ -355,7 +355,7 @@ endfunction
|
|||||||
function! s:Bookmark.toRoot()
|
function! s:Bookmark.toRoot()
|
||||||
if self.validate()
|
if self.validate()
|
||||||
try
|
try
|
||||||
let targetNode = s:Bookmark.GetNodeForName(self.name, 1)
|
let targetNode = self.getNode(1)
|
||||||
catch /NERDTree.BookmarkedNodeNotFound/
|
catch /NERDTree.BookmarkedNodeNotFound/
|
||||||
let targetNode = s:TreeFileNode.New(s:Bookmark.BookmarkFor(self.name).path)
|
let targetNode = s:TreeFileNode.New(s:Bookmark.BookmarkFor(self.name).path)
|
||||||
endtry
|
endtry
|
||||||
|
|||||||
Reference in New Issue
Block a user