shorten filetype only when winwidth is < 90

This commit is contained in:
Christian Brabandt 2017-05-02 22:06:36 +02:00
parent b3722b1e82
commit d593359500
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -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()