diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 6327b6ff..0a71cd04 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -164,7 +164,7 @@ function! s:get_number(index) endif let bidx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0) if bidx_mode > 1 - return join(map(split(a:index+10, '\zs'), 'get(s:number_map, v:val, "")'), '') + return join(map(split(a:index+11, '\zs'), 'get(s:number_map, v:val, "")'), '') else return get(s:number_map, a:index+1, '') endif @@ -203,8 +203,8 @@ function! s:map_keys() exe printf('noremap AirlineSelectTab%d :call select_tab(%d)', i, i-1) endfor else - for i in range(10, 99) - exe printf('noremap AirlineSelectTab%d :call select_tab(%d)', i, i-10) + for i in range(11, 99) + exe printf('noremap AirlineSelectTab%d :call select_tab(%d)', i, i-11) endfor endif noremap AirlineSelectPrevTab :call jump_to_tab(-v:count1) diff --git a/autoload/airline/extensions/tabline/tabs.vim b/autoload/airline/extensions/tabline/tabs.vim index dba63b0b..7412cdd4 100644 --- a/autoload/airline/extensions/tabline/tabs.vim +++ b/autoload/airline/extensions/tabline/tabs.vim @@ -110,8 +110,8 @@ function! airline#extensions#tabline#tabs#map_keys() exe printf('noremap AirlineSelectTab%d :%dtabn', i, i) endfor else - for i in range(10, 99) - exe printf('noremap AirlineSelectTab%d :%dtabn', i, i-9) + for i in range(11, 99) + exe printf('noremap AirlineSelectTab%d :%dtabn', i, i-10) endfor endif noremap AirlineSelectPrevTab gT