delete a paths bookmarks when delete the path

This commit is contained in:
Martin Grenfell 2008-07-13 14:08:06 +12:00
parent b1d10a12fa
commit 78419f858c

View File

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