tabline: do not change the signature of get_buffer_name

Thanks to @wsdjeg about notifying me in
https://github.com/vim-airline/vim-airline/commit/e1f7bf#commitcomment-18104843.

Fixes: https://github.com/vim-airline/vim-airline/issues/1204.
This commit is contained in:
Daniel Hahler 2016-07-02 16:24:47 +02:00
parent e1f7bffe71
commit 63dc4ba2a4
1 changed files with 3 additions and 2 deletions

View File

@ -147,8 +147,9 @@ function! airline#extensions#tabline#title(n)
return title
endfunction
function! airline#extensions#tabline#get_buffer_name(nr, buffers)
return airline#extensions#tabline#formatters#{s:formatter}#format(a:nr, a:buffers)
function! airline#extensions#tabline#get_buffer_name(nr, ...)
let buffers = a:0 ? a:1 : airline#extensions#tabline#buflist#list()
return airline#extensions#tabline#formatters#{s:formatter}#format(a:nr, buffers)
endfunction
function! airline#extensions#tabline#new_builder()