From d593359500c0d117a44e67ff5db8897b049e8090 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 2 May 2017 22:06:36 +0200 Subject: [PATCH] shorten filetype only when winwidth is < 90 --- 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 6496bd98..f7b56fb8 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -84,7 +84,7 @@ function! airline#parts#readonly() endfunction function! airline#parts#filetype() - return winwidth(0) < 100 && strlen(&filetype) > 3 ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? '…' : '>') : &filetype + return winwidth(0) < 90 && strlen(&filetype) > 3 ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? '…' : '>') : &filetype endfunction function! airline#parts#ffenc()