Merge pull request #1426 from lynnard/master
Fix problems with AirlineSelect{Prev,Next}Tab
This commit is contained in:
commit
c17ad9a123
@ -196,10 +196,10 @@ function! s:select_tab(buf_index)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:jump_to_tab(offset)
|
function! s:jump_to_tab(offset)
|
||||||
let l = s:current_visible_buffers
|
let l = airline#extensions#tabline#buflist#list()
|
||||||
let i = index(l, bufnr('%'))
|
let i = index(l, bufnr('%'))
|
||||||
if i > -1
|
if i > -1
|
||||||
exec 'b!' . l[float2nr(fmod(i + a:offset, len(l)))]
|
exec 'b!' . l[(i + a:offset) % len(l)]
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user