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