commit 78419f858cb6a0443fcfb86f9bccd67e07b4c381
parent b1d10a12fa096f9c66b0583d1e27c88ff4f5d447
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Sun, 13 Jul 2008 14:08:06 +1200
delete a paths bookmarks when delete the path
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1202,6 +1202,12 @@ function! s:oPath.Delete() dict
throw "NERDTree.Path.Deletion Exception: Could not delete file: '" . self.Str(0) . "'"
endif
endif
+
+ "delete all bookmarks for this path
+ for i in self.BookmarkNames()
+ let bookmark = s:oBookmark.BookmarkFor(i)
+ call bookmark.Delete()
+ endfor
endfunction
"FUNCTION: oPath.ExtractDriveLetter(fullpath) {{{3