From c0589223586707debcd88c21f20ad4928a1bf2eb Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 8 Sep 2016 21:32:36 +0200 Subject: [PATCH] do not use utf-8 chars, if encoding is different fixes #1234 #1248 --- autoload/airline/parts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/parts.vim b/autoload/airline/parts.vim index c5ab94a1..1f181e86 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -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()