From a914cfb75438c36eefd2d7ee73da5196b0b0c2da Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 28 Jun 2017 21:08:30 +0200 Subject: [PATCH] backout b2f301f73c Backout commit b2f301f73c First of all, it caused flicker (which is caused by a Vim bug: https://groups.google.com/d/msg/vim_dev/fdgPqmYZwOk/KJzR4l9wAwAJA) and then the cache was not reset when editing a new file. So let's just revert that commit, although it does affect performance. fixes #1499 --- autoload/airline/extensions/tabline.vim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 91c19d3..cadb399 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -141,19 +141,11 @@ function! airline#extensions#tabline#title(n) let buflist = tabpagebuflist(a:n) let winnr = tabpagewinnr(a:n) let all_buffers = airline#extensions#tabline#buflist#list() - let title = airline#extensions#tabline#get_buffer_name( + return airline#extensions#tabline#get_buffer_name( \ buflist[winnr - 1], \ filter(buflist, 'index(all_buffers, v:val) != -1')) endif - if exists("*settabvar") && !empty(title) - " don't use settabvar, it causes a refresh, - " which in turn causes flicker on windows - "call settabvar(a:n, 'title', title) - if tabpagenr() == a:n - let t:title = title - endif - endif return title endfunction