Update tabs tabline when the width of the terminal changes

This commit is contained in:
mrmr1993 2018-03-14 15:25:03 +00:00
parent 5d2d764368
commit 88dedb586a

View File

@ -64,7 +64,7 @@ function! airline#extensions#tabline#tabs#get()
catch
" no-op
endtry
if curbuf == s:current_bufnr && curtab == s:current_tabnr
if curbuf == s:current_bufnr && curtab == s:current_tabnr && &columns == s:column_width
if !g:airline_detect_modified || getbufvar(curbuf, '&modified') == s:current_modified
return s:current_tabline
endif
@ -170,6 +170,7 @@ function! airline#extensions#tabline#tabs#get()
let s:current_bufnr = curbuf
let s:current_tabnr = curtab
let s:column_width = &columns
let s:current_tabline = b.build()
return s:current_tabline
endfunction