1
0
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:
Jan Larres
2013-11-30 03:18:39 +13:00
parent 528bdc6b8d
commit ba3693f977

View File

@@ -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)