Add dedicated tabline builder

This commit is contained in:
mrmr1993 2018-03-15 01:23:43 +00:00
parent 57f2619c67
commit 5907d3909e
2 changed files with 13 additions and 1 deletions

View File

@ -181,7 +181,7 @@ function! airline#extensions#tabline#new_builder()
let builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|')
endif
return airline#builder#new(builder_context)
return airline#extensions#tabline#builder#new(builder_context)
endfunction
function! airline#extensions#tabline#group_of_bufnr(tab_bufs, bufnr)

View File

@ -0,0 +1,12 @@
" MIT License. Copyright (c) 2013-2018 Bailey Ling et al.
" vim: et ts=2 sts=2 sw=2
scriptencoding utf-8
let s:prototype = {}
function! airline#extensions#tabline#builder#new(context)
let builder = airline#builder#new(a:context)
call extend(builder, s:prototype, 'force')
return builder
endfunction