1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 10:40:04 +08:00

fix(statusline): fix statusline fireformat sep

This commit is contained in:
Eric Wong 2024-05-06 19:08:25 +08:00
parent db3ea12b2d
commit fd9a12aa67

View File

@ -166,7 +166,7 @@ function! s:fileformat() abort
else else
let g:_spacevim_statusline_fileformat = &ff let g:_spacevim_statusline_fileformat = &ff
endif endif
return '%{" " . g:_spacevim_statusline_fileformat . " | " . (&fenc!=""?&fenc:&enc) . " "}' return '%{" " . g:_spacevim_statusline_fileformat . " ' . s:irsep . ' " . (&fenc!=""?&fenc:&enc) . " "}'
endfunction endfunction
function! s:major_mode() abort function! s:major_mode() abort
@ -682,7 +682,7 @@ function! s:inactive() abort
let l .= '%{ get(w:, "winwidth", 150) < ' . base . ' ? "" : (" ' . s:STATUSLINE.eval(sec) . ' ' . s:ilsep . '")}' let l .= '%{ get(w:, "winwidth", 150) < ' . base . ' ? "" : (" ' . s:STATUSLINE.eval(sec) . ' ' . s:ilsep . '")}'
endfor endfor
if get(w:, 'winwidth', 150) > base + 10 if get(w:, 'winwidth', 150) > base + 10
let l .= join(['%=', '%{" " . &ff . "|" . (&fenc!=""?&fenc:&enc) . " "}', ' %P '], s:irsep) let l .= join(['%=', '%{" " . &ff}', '%{(&fenc!=""?&fenc:&enc) . " "}', ' %P '], s:irsep)
endif endif
return l return l
endfunction endfunction