mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-02-17 01:42:46 +08:00
Use mode minwidth to configure truncation
This commit is contained in:
parent
82aeea1276
commit
04f95183e2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user