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
This commit is contained in:
Christian Brabandt 2017-06-28 21:08:30 +02:00
parent 313a6fcad2
commit a914cfb754
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 9 deletions

View File

@ -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