bufferline: always add a space for the very first item

closes #1631
This commit is contained in:
Christian Brabandt 2018-04-15 10:16:28 +02:00
parent f7c818a0ff
commit a76f523be5
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -107,7 +107,9 @@ function! airline#extensions#tabline#buffers#get()
let bufnum = get(self.buffers, a:i, -1)
let group = self.get_group(a:i)
let pgroup = self.get_group(a:i - 1)
if get(g:, 'airline_powerline_fonts', 0)
" always add a space when powerline_fonts are used
" or for the very first item
if get(g:, 'airline_powerline_fonts', 0) || a:i == 0
let space = s:spc
else
let space= (pgroup == group ? s:spc : '')