From 6e1e6686e73e01b7843bfb8706eb09730cfee345 Mon Sep 17 00:00:00 2001 From: Hana Shiro Date: Sat, 2 Jun 2018 21:22:00 +0800 Subject: [PATCH] Fix problems caused by #1524 --- autoload/airline/extensions/tabline/ctrlspace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/ctrlspace.vim b/autoload/airline/extensions/tabline/ctrlspace.vim index 75a6e7e..9222ef7 100644 --- a/autoload/airline/extensions/tabline/ctrlspace.vim +++ b/autoload/airline/extensions/tabline/ctrlspace.vim @@ -34,7 +34,7 @@ function! airline#extensions#tabline#ctrlspace#add_buffer_section(builder, cur_t " return false and no redraw tabline. " Fixes #1515. if there a BufEnter autocmd execute redraw. The tabline may no update. let bufnr_list = map(copy(s:buffer_list), 'v:val["index"]') - if index(bufnr_list, a:cur_buf) == -1 + if index(bufnr_list, a:cur_buf) == -1 && a:cur_tab == s:current_tabnr return 0 endif