mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Use mode minwidth to configure truncation
This commit is contained in:
@@ -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