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
1 changed files with 2 additions and 1 deletions

View File

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