Fix problems caused by #1524

This commit is contained in:
Hana Shiro 2018-06-02 21:22:00 +08:00
parent a6e07b6a55
commit 6e1e6686e7

View File

@ -34,7 +34,7 @@ function! airline#extensions#tabline#ctrlspace#add_buffer_section(builder, cur_t
" return false and no redraw tabline. " return false and no redraw tabline.
" Fixes #1515. if there a BufEnter autocmd execute redraw. The tabline may no update. " 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"]') 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 return 0
endif endif