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:
Martin Grenfell 2008-08-31 20:56:13 +12:00
parent 76d2ecbb17
commit 4f0a39159a

View File

@ -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