mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-15 14:12:46 +08:00
Fix header indentation
This commit is contained in:
parent
9ec7d1db4c
commit
f801147c2e
|
@ -2620,11 +2620,10 @@ function! s:PrintTag(tag, depth, fileinfo, typeinfo) abort
|
|||
" are not scope-defining tags (since those already have an
|
||||
" identifier)
|
||||
if !has_key(a:typeinfo.kind2scope, ckind.short)
|
||||
let indent = g:tagbar_indent
|
||||
let indent = (a:depth + 1) * g:tagbar_indent
|
||||
let indent += g:tagbar_show_visibility
|
||||
let indent += 1 " fold symbol
|
||||
silent put =repeat(' ', (a:depth + 1) * indent)
|
||||
\ . '[' . ckind.long . ']'
|
||||
silent put =repeat(' ', indent) . '[' . ckind.long . ']'
|
||||
" Add basic tag to allow folding when on the header line
|
||||
let headertag = s:BaseTag.New(ckind.long)
|
||||
let headertag.parent = a:tag
|
||||
|
|
Loading…
Reference in New Issue
Block a user