commit 4f0a39159a5bd99851172813244cb8e243933964
parent 76d2ecbb178ccfe4a4079ecf738f0a63714655d0
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Sun, 31 Aug 2008 20:56:13 +1200
fix some bugs with bookmarks
if #delete() was called on a bookmark that wasnt cached, the wrong error
was being "catch"ed
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -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