Skip to content

Commit

Permalink
parts: error when unsing non-utf8 encoding
Browse files Browse the repository at this point in the history
use exprission string "\u2026" instead of literal …

fixes #2666
  • Loading branch information
chrisbra committed Feb 17, 2024
1 parent 20a49bd commit d9f42cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/airline/parts.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d9f42cb

Please sign in to comment.