1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

fix(tagbar): fix tagbar startup

close https://github.com/SpaceVim/SpaceVim/issues/4872
This commit is contained in:
wsdjeg 2023-06-28 08:52:18 +08:00
parent 2ae3d23dfc
commit c6195cd0e4

View File

@ -374,7 +374,9 @@ endfunction
function! SpaceVim#layers#core#statusline#_current_tag() abort
let tag = ''
try
if execute('filetype') ==# 'detection:ON'
let tag = tagbar#currenttag('%s ', '')
endif
catch
endtry
return tag