From 69020706b2fc87532cc17d4b686e7dc27bf3ae70 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 20 Oct 2016 22:57:26 +0200 Subject: [PATCH] Shorten mode message for small windows --- 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 5638379..f30f2ae 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -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()