mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-25 17:57:36 +08:00
parts: error when unsing non-utf8 encoding
use exprission string "\u2026" instead of literal … fixes #2666
This commit is contained in:
parent
20a49bd494
commit
d9f42cb467
|
@ -191,7 +191,7 @@ endfunction
|
|||
|
||||
function! airline#parts#filetype()
|
||||
return (airline#util#winwidth() < 90 && strlen(&filetype) > 3)
|
||||
\ ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? '…' : '>')
|
||||
\ ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? "\u2026" : '>')
|
||||
\ : &filetype
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user