From d13305fc5d6b1f37c56cf54a1e987f48381498ef Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Thu, 15 Mar 2018 20:40:36 +0000 Subject: [PATCH] Redraw buffer tabline when the terminal width changes --- autoload/airline/extensions/tabline/buffers.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 729cade2..a9dfe3ba 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -52,7 +52,7 @@ function! airline#extensions#tabline#buffers#get() " no-op endtry let cur = bufnr('%') - if cur == s:current_bufnr + if cur == s:current_bufnr && &columns == s:column_width if !g:airline_detect_modified || getbufvar(cur, '&modified') == s:current_modified return s:current_tabline endif @@ -140,6 +140,7 @@ function! airline#extensions#tabline#buffers#get() endif let s:current_bufnr = cur + let s:column_width = &columns let s:current_tabline = b.build() let s:current_visible_buffers = copy(b.buffers) if b._right_tab <= last_buffer