From 88dedb586ab4ff880ff74e9bb9a9a5c35d90fb18 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 14 Mar 2018 15:25:03 +0000 Subject: [PATCH] Update tabs tabline when the width of the terminal changes --- autoload/airline/extensions/tabline/tabs.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/tabs.vim b/autoload/airline/extensions/tabline/tabs.vim index 7bc15d4d..beed74c5 100644 --- a/autoload/airline/extensions/tabline/tabs.vim +++ b/autoload/airline/extensions/tabline/tabs.vim @@ -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