mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-02-17 07:22:44 +08:00
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:
parent
72888d87ea
commit
4604f6d465
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user