tabline: do not add extra space before buffer name
there was a space too much added in the tabline. Fix that
This commit is contained in:
parent
5db4c408bd
commit
ab49a1c7ae
@ -88,13 +88,13 @@ function! airline#extensions#tabline#buffers#get()
|
|||||||
|
|
||||||
if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 1)
|
if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 1)
|
||||||
if len(s:number_map) > 0
|
if len(s:number_map) > 0
|
||||||
call b.add_section(group, s:spc . get(s:number_map, index, '') . '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)' . s:spc)
|
call b.add_section(group, get(s:number_map, index, '') . '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)' . s:spc)
|
||||||
else
|
else
|
||||||
call b.add_section(group, '['.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 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, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("tablineat")
|
if has("tablineat")
|
||||||
|
Loading…
Reference in New Issue
Block a user