mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-12 20:51:45 +08:00
fix some bugs with bookmarks
if #delete() was called on a bookmark that wasnt cached, the wrong error was being "catch"ed
This commit is contained in:
parent
76d2ecbb17
commit
4f0a39159a
|
@ -267,7 +267,7 @@ function! s:oBookmark.Delete() dict
|
|||
let node = {}
|
||||
try
|
||||
let node = self.GetNode(1)
|
||||
catch /NERDTree.BookmarkNotFound/
|
||||
catch /NERDTree.BookmarkedNodeNotFound/
|
||||
endtry
|
||||
call remove(s:oBookmark.Bookmarks(), index(s:oBookmark.Bookmarks(), self))
|
||||
if !empty(node)
|
||||
|
@ -2207,6 +2207,7 @@ function! s:GetSelectedBookmark()
|
|||
return {}
|
||||
endtry
|
||||
endif
|
||||
return {}
|
||||
endfunction
|
||||
|
||||
"FUNCTION: s:GetSelectedDir() {{{2
|
||||
|
|
Loading…
Reference in New Issue
Block a user