tabline: Use :redrawtabline if available

this needs patch 8.1.706 and is a less hacky approach to force updating
the tabline
This commit is contained in:
Christian Brabandt 2019-01-09 07:42:32 +01:00
parent 72888d87ea
commit 4604f6d465
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -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)