mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-10 15:15:47 +08:00
Use mode minwidth to configure truncation
This commit is contained in:
1 parent
82aeea1276
commit
04f95183e2
1 file changed
+3
-1
@@ -53,7 +53,9 @@ endfunction
|
||||
" }}}
|
||||
|
||||
function! airline#parts#mode()
|
||||
return airline#util#shorten(get(w:, 'airline_current_mode', ''), 79, 1)
|
||||
let part = airline#parts#get('mode')
|
||||
let minwidth = get(part, 'minwidth', 79)
|
||||
return airline#util#shorten(get(w:, 'airline_current_mode', ''), minwidth, 1)
|
||||
endfunction
|
||||
|
||||
function! airline#parts#crypt()
|
||||
|
||||
Reference in new issue
Block a user