do not echo feedkeys() arguments
Try a different approach, that does not echo the commandline. For that, create a <silent> mapping, that is called via feedkeys() and as such should update the tabline. fixes #1011
This commit is contained in:
parent
b48b166a22
commit
08a8779268
@ -52,13 +52,16 @@ function! s:update_tabline()
|
|||||||
\ || isdirectory(expand("<afile>"))
|
\ || isdirectory(expand("<afile>"))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
if empty(mapcheck("<Plug>AirlineTablineRefresh", 'n'))
|
||||||
|
noremap <silent> <Plug>AirlineTablineRefresh :set mod!<cr>
|
||||||
|
endif
|
||||||
|
call feedkeys("\<Plug>AirlineTablineRefresh")
|
||||||
|
call feedkeys("\<Plug>AirlineTablineRefresh")
|
||||||
|
"call feedkeys(',,', 't')
|
||||||
|
"call feedkeys(':unmap ,,')
|
||||||
" force re-evaluation of tabline setting
|
" force re-evaluation of tabline setting
|
||||||
sil call feedkeys(":set mod!\n", 'n')
|
|
||||||
sil call feedkeys(":set mod!\n", 'n')
|
|
||||||
" disable explicit redraw, may cause E315
|
" disable explicit redraw, may cause E315
|
||||||
" https://groups.google.com/d/msg/vim_dev/fYl4dP1i9fo/rPT5f7h1DAAJ
|
|
||||||
"redraw
|
"redraw
|
||||||
"set mod!
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#tabline#load_theme(palette)
|
function! airline#extensions#tabline#load_theme(palette)
|
||||||
|
Loading…
Reference in New Issue
Block a user