mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-10-13 16:39:05 +08:00
pass in buffers to the formatter.
This commit is contained in:
1 parent
0ac25ecc30
commit
2e46190034
3 files changed
+4
-3
No files matched your search
@@ -80,7 +80,7 @@ function! airline#extensions#tabline#title(n)
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tabline#get_buffer_name(nr)
|
||||
return airline#extensions#tabline#formatters#{s:formatter}(a:nr)
|
||||
return airline#extensions#tabline#formatters#{s:formatter}(a:nr, get(s:, 'current_buffer_list', []))
|
||||
endfunction
|
||||
|
||||
function! s:get_buffer_list()
|
||||
@@ -106,6 +106,7 @@ function! s:get_buffer_list()
|
||||
let buffers = buffers[:s:buf_max]
|
||||
endif
|
||||
|
||||
let s:current_buffer_list = buffers
|
||||
return buffers
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in new issue
Block a user