mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-23 20:11:16 +08:00
delete a paths bookmarks when delete the path
This commit is contained in:
parent
b1d10a12fa
commit
78419f858c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user