From 4604f6d465bb36ce813a6a7a17b14f7b238bfa62 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 9 Jan 2019 07:42:32 +0100 Subject: [PATCH] tabline: Use :redrawtabline if available this needs patch 8.1.706 and is a less hacky approach to force updating the tabline --- autoload/airline/extensions/tabline.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index c07dc83e..265477db 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -60,7 +60,11 @@ function! s:update_tabline() call airline#util#doautocmd('BufMRUChange') " sometimes, the tabline is not correctly updated see #1580 " so force redraw here - let &tabline = &tabline + if exists(":redtawtabline") == 2 + redrawtabline + else + let &tabline = &tabline + endif endfunction function! airline#extensions#tabline#load_theme(palette)