mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 14:47:18 +08:00
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
This commit is contained in:
parent
313a6fcad2
commit
a914cfb754
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user