mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:10:03 +08:00
fix(statusline): fix statusline fireformat sep
This commit is contained in:
parent
db3ea12b2d
commit
fd9a12aa67
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user