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

shane: compact tag line# should be good enough if user set it (#687)

This commit is contained in:
Shane-XB-Qian
2020-10-28 23:17:50 +08:00
committed by GitHub
parent aa8c592201
commit 8efec2509b
4 changed files with 7 additions and 7 deletions

View File

@@ -2202,7 +2202,7 @@ function! s:HighlightTag(openfolds, ...) abort
" If printing the line number of the tag to the left, and the tag is
" visible (I.E. parent isn't folded)
if g:tagbar_show_tag_linenumbers == 2 && tagline == tag.tline
let pattern = '/^\%' . tagline . 'l\s*' . foldpat . '[-+# ]\[line [0-9]*\] \?\zs[^( ]\+\ze/'
let pattern = '/^\%' . tagline . 'l\s*' . foldpat . '[-+# ]\[[0-9]\+\] \?\zs[^( ]\+\ze/'
else
let pattern = '/^\%' . tagline . 'l\s*' . foldpat . '[-+# ]\?\zs[^( ]\+\ze/'
endif