From 7f19896dc650c628be9ce9d7579487622a565727 Mon Sep 17 00:00:00 2001 From: Lingnan Dai Date: Tue, 28 Feb 2017 15:54:03 +0000 Subject: [PATCH] Fix problems with AirlineSelect{Prev,Next}Tab Use the entire list of buffers instead of the currently visible ones --- autoload/airline/extensions/tabline/buffers.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 31ad4da..561ca85 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -177,10 +177,10 @@ function! s:select_tab(buf_index) endfunction function! s:jump_to_tab(offset) - let l = s:current_visible_buffers + let l = airline#extensions#tabline#buflist#list() let i = index(l, bufnr('%')) if i > -1 - exec 'b!' . l[float2nr(fmod(i + a:offset, len(l)))] + exec 'b!' . l[(i + a:offset) % len(l)] endif endfunction