mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-21 21:14:47 +02:00
Merge pull request #2081 from kazukazuinaina/fix/scope
[fix] count variable's scope
This commit is contained in:
commit
71a7e23f32
@ -162,8 +162,8 @@ function! s:get_number(index)
|
|||||||
endif
|
endif
|
||||||
let bidx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0)
|
let bidx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0)
|
||||||
if bidx_mode > 1
|
if bidx_mode > 1
|
||||||
let count = bidx_mode == 2 ? a:index+11 : a:index+1
|
let l:count = bidx_mode == 2 ? a:index+11 : a:index+1
|
||||||
return join(map(split(printf('%02d', count), '\zs'),
|
return join(map(split(printf('%02d', l:count), '\zs'),
|
||||||
\ 'get(s:number_map, v:val, "")'), '')
|
\ 'get(s:number_map, v:val, "")'), '')
|
||||||
else
|
else
|
||||||
return get(s:number_map, a:index+1, '')
|
return get(s:number_map, a:index+1, '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user