From 08a877926805739446d8636bebf36fa78c3ea4f0 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 8 Feb 2016 21:16:38 +0100 Subject: [PATCH] do not echo feedkeys() arguments Try a different approach, that does not echo the commandline. For that, create a mapping, that is called via feedkeys() and as such should update the tabline. fixes #1011 --- autoload/airline/extensions/tabline.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index e426af58..0447952b 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -52,13 +52,16 @@ function! s:update_tabline() \ || isdirectory(expand("")) return endif + if empty(mapcheck("AirlineTablineRefresh", 'n')) + noremap AirlineTablineRefresh :set mod! + endif + call feedkeys("\AirlineTablineRefresh") + call feedkeys("\AirlineTablineRefresh") + "call feedkeys(',,', 't') + "call feedkeys(':unmap ,,') " 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 - " https://groups.google.com/d/msg/vim_dev/fYl4dP1i9fo/rPT5f7h1DAAJ "redraw - "set mod! endfunction function! airline#extensions#tabline#load_theme(palette)