Merge pull request #1205 from blueyed/fix-1204

tabline: do not change the signature of get_buffer_name
This commit is contained in:
Christian Brabandt 2016-07-02 20:19:47 +02:00 committed by GitHub
commit a710cb99dd

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()