1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:50:06 +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
let g:_spacevim_statusline_fileformat = &ff
endif
return '%{" " . g:_spacevim_statusline_fileformat . " | " . (&fenc!=""?&fenc:&enc) . " "}'
return '%{" " . g:_spacevim_statusline_fileformat . " ' . s:irsep . ' " . (&fenc!=""?&fenc:&enc) . " "}'
endfunction
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 . '")}'
endfor
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
return l
endfunction