Merge pull request #1660 from erfanio/fix_buffer_tabline

Fix white space in tabline when showing buffers
This commit is contained in:
Christian Brabandt 2018-02-10 20:49:47 +01:00 committed by GitHub
commit e4968d7a40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,11 @@ function! airline#extensions#tabline#buffers#get()
call b.add_raw('%'.nr.'@airline#extensions#tabline#buffers#clickbuf@') call b.add_raw('%'.nr.'@airline#extensions#tabline#buffers#clickbuf@')
endif endif
let space= (pgroup == group ? s:spc : '') if get(g:, 'airline_powerline_fonts', 0)
let space = s:spc
else
let space= (pgroup == group ? s:spc : '')
endif
if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0) if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0)
if len(s:number_map) > 0 if len(s:number_map) > 0