tabline: remove l: variable prefix

This commit is contained in:
Christian Brabandt 2018-01-04 14:20:36 +01:00
parent 72e457d8c2
commit d03c3fa7b9
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -62,7 +62,7 @@ function! airline#extensions#tabline#buffers#get()
endif endif
endif endif
let l:index = 1 let index = 1
let b = airline#extensions#tabline#new_builder() let b = airline#extensions#tabline#new_builder()
let tab_bufs = tabpagebuflist(tabpagenr()) let tab_bufs = tabpagebuflist(tabpagenr())
for nr in s:get_visible_buffers() for nr in s:get_visible_buffers()
@ -83,11 +83,11 @@ function! airline#extensions#tabline#buffers#get()
endif endif
if s:buffer_idx_mode if s:buffer_idx_mode
if len(s:number_map) > 0 if len(s:number_map) > 0
call b.add_section(group, s:spc . get(s:number_map, l:index, '') . '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)' . s:spc) call b.add_section(group, s:spc . get(s:number_map, index, '') . '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)' . s:spc)
else else
call b.add_section(group, '['.l:index.s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.']') call b.add_section(group, '['.index.s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.']')
endif endif
let l:index = l:index + 1 let index += 1
else else
call b.add_section(group, s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc) call b.add_section(group, s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc)
endif endif