From 8c634887bf841d9ea9c639b4c82227b10e6f81be Mon Sep 17 00:00:00 2001 From: erfanio Date: Thu, 8 Feb 2018 19:02:35 -0800 Subject: [PATCH] Fix white space in tabline when showing buffers --- autoload/airline/extensions/tabline/buffers.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 606a9c3..f137ef1 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -87,7 +87,11 @@ function! airline#extensions#tabline#buffers#get() call b.add_raw('%'.nr.'@airline#extensions#tabline#buffers#clickbuf@') 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 len(s:number_map) > 0