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:
parent
e1f7bffe71
commit
63dc4ba2a4
|
@ -147,8 +147,9 @@ function! airline#extensions#tabline#title(n)
|
||||||
return title
|
return title
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#tabline#get_buffer_name(nr, buffers)
|
function! airline#extensions#tabline#get_buffer_name(nr, ...)
|
||||||
return airline#extensions#tabline#formatters#{s:formatter}#format(a:nr, a:buffers)
|
let buffers = a:0 ? a:1 : airline#extensions#tabline#buflist#list()
|
||||||
|
return airline#extensions#tabline#formatters#{s:formatter}#format(a:nr, buffers)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#tabline#new_builder()
|
function! airline#extensions#tabline#new_builder()
|
||||||
|
|
Loading…
Reference in New Issue