mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Properly open fold when jumping to tag
This commit is contained in:
@@ -3000,9 +3000,7 @@ function! s:JumpToTag(stay_in_tagbar) abort
|
||||
normal! z.
|
||||
call cursor(taginfo.fields.line, taginfo.fields.column)
|
||||
|
||||
if foldclosed('.') != -1
|
||||
.foldopen
|
||||
endif
|
||||
normal! zv
|
||||
|
||||
if a:stay_in_tagbar
|
||||
call s:HighlightTag(0)
|
||||
|
||||
Reference in New Issue
Block a user