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

feat(statusline): support global statusline

This commit is contained in:
wsdjeg 2022-04-16 09:03:59 +08:00
parent a6e14e1cfb
commit fce3fdd2ba

View File

@ -603,7 +603,8 @@ function! s:active() abort
let fname = s:buffer_name()
let tag = s:current_tag()
return s:STATUSLINE.build(lsec, rsec, s:lsep, s:rsep, fname, tag,
\ 'SpaceVim_statusline_a', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z', winwidth(winnr()))
\ 'SpaceVim_statusline_a', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z',
\ &laststatus ==# 3 ? &columns : winwidth(winnr()))
endfunction
function! s:inactive() abort