Merge pull request #1426 from lynnard/master

Fix problems with AirlineSelect{Prev,Next}Tab
This commit is contained in:
Christian Brabandt 2018-01-04 21:15:00 +01:00 committed by GitHub
commit c17ad9a123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -196,10 +196,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