Merge pull request #1298 from chrisbra/shorten_mode

Shorten mode message for small windows
This commit is contained in:
Christian Brabandt 2016-10-25 08:01:07 +02:00 committed by GitHub
commit 5fe511c20b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ endfunction
" }}}
function! airline#parts#mode()
return get(w:, 'airline_current_mode', '')
return airline#util#shorten(get(w:, 'airline_current_mode', ''), 79, 1)
endfunction
function! airline#parts#crypt()