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:
parent
2ae3d23dfc
commit
c6195cd0e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user