diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index f7d8311..04a7159 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -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()