do not use utf-8 chars, if encoding is different

fixes #1234 #1248
This commit is contained in:
Christian Brabandt 2016-09-08 21:32:36 +02:00
parent afee79bbe0
commit c058922358
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ function! airline#parts#readonly()
endfunction
function! airline#parts#filetype()
return winwidth(0) < 100 && strlen(&filetype) > 3 ? matchstr(&filetype, '...'). '…' : &filetype
return winwidth(0) < 100 && strlen(&filetype) > 3 ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? '…' : '>') : &filetype
endfunction
function! airline#parts#ffenc()