Merge pull request #328 from mikkeloscar/master

Adds userdefined space in tabline, workaround for #327
This commit is contained in:
Bailey Ling 2013-11-02 21:13:12 -07:00
commit aef500c426

View File

@ -21,6 +21,7 @@ endif
let s:buf_min_count = get(g:, 'airline#extensions#tabline#buffer_min_count', 0)
let s:tab_min_count = get(g:, 'airline#extensions#tabline#tab_min_count', 0)
let s:spc = g:airline_symbols.space
function! airline#extensions#tabline#init(ext)
if has('gui_running')
@ -200,7 +201,7 @@ function! s:get_buffers()
let group = 'airline_tabhid'
endif
endif
call b.add_section(group, '%( %{airline#extensions#tabline#get_buffer_name('.nr.')} %)')
call b.add_section(group, s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc)
endfor
call b.add_section('airline_tabfill', '')