1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

Add TagbarJump (#515)

Co-authored-by: Sundström Valter <mail@valter.nu>
Co-authored-by: David Hegland <david.hegland@broadcom.com>
This commit is contained in:
Valter Sundström
2021-01-12 05:41:44 +01:00
committed by GitHub
parent 6f02f1f852
commit 2a36ad79a7
3 changed files with 25 additions and 0 deletions

View File

@@ -3969,5 +3969,14 @@ function! tagbar#IsOpen() abort
endif
endfunction
" tagbar#jump() {{{2
function! tagbar#jump() abort
if &filetype !=# 'tagbar'
" Not in tagbar window - ignore this function call
return
endif
call s:JumpToTag(1)
endfun
" Modeline {{{1
" vim: ts=8 sw=4 sts=4 et foldenable foldmethod=marker foldcolumn=1