mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-01 01:51:01 +08:00
add s:ValidateBookmark()
This commit is contained in:
parent
9dd850b672
commit
5939fdb140
|
@ -2789,6 +2789,17 @@ function! s:Toggle(dir)
|
|||
call s:InitNerdTree(a:dir)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
"FUNCTION: s:ValidateBookmark(bookmark) {{{2
|
||||
function! s:ValidateBookmark(bookmark)
|
||||
try
|
||||
call a:bookmark.MustExist()
|
||||
catch /NERDTree.BookmarkPointsToInvalidLocation/
|
||||
call s:RenderView()
|
||||
throw v:exception
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
"SECTION: Interface bindings {{{1
|
||||
"============================================================
|
||||
"FUNCTION: s:ActivateNode(forceKeepWindowOpen) {{{2
|
||||
|
|
Loading…
Reference in New Issue
Block a user