mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
add s:ValidateBookmark()
This commit is contained in:
@@ -2789,6 +2789,17 @@ function! s:Toggle(dir)
|
|||||||
call s:InitNerdTree(a:dir)
|
call s:InitNerdTree(a:dir)
|
||||||
endif
|
endif
|
||||||
endfunction
|
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
|
"SECTION: Interface bindings {{{1
|
||||||
"============================================================
|
"============================================================
|
||||||
"FUNCTION: s:ActivateNode(forceKeepWindowOpen) {{{2
|
"FUNCTION: s:ActivateNode(forceKeepWindowOpen) {{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user