Merge pull request #2204 from kazukazuinaina/fix_vista_statusline

[adjust] vista's extension  width
This commit is contained in:
IK 2020-08-18 15:44:32 +09:00 committed by GitHub
commit f84683a8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +7,12 @@ if !get(g:, 'loaded_vista', 0)
finish
endif
function! airline#extensions#vista#currenttag()
function! airline#extensions#vista#currenttag() abort
if get(w:, 'airline_active', 0)
return get(b:, 'vista_nearest_method_or_function', '')
return airline#util#shorten(get(b:, 'vista_nearest_method_or_function', ''), 91, 9)
endif
endfunction
function! airline#extensions#vista#init(ext)
function! airline#extensions#vista#init(ext) abort
call airline#parts#define_function('vista', 'airline#extensions#vista#currenttag')
endfunction