mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 15:34:32 +02: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')
|
call airline#util#doautocmd('BufMRUChange')
|
||||||
" sometimes, the tabline is not correctly updated see #1580
|
" sometimes, the tabline is not correctly updated see #1580
|
||||||
" so force redraw here
|
" so force redraw here
|
||||||
let &tabline = &tabline
|
if exists(":redtawtabline") == 2
|
||||||
|
redrawtabline
|
||||||
|
else
|
||||||
|
let &tabline = &tabline
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#tabline#load_theme(palette)
|
function! airline#extensions#tabline#load_theme(palette)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user