mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 11:21:04 +08:00
Merge pull request #698 from blueyed/fix-cache-with-get_buffer_name
Fix get_buffer_list being called always via get()
This commit is contained in:
commit
7bc939bee9
|
@ -130,7 +130,10 @@ function! airline#extensions#tabline#title(n)
|
|||
endfunction
|
||||
|
||||
function! airline#extensions#tabline#get_buffer_name(nr)
|
||||
return airline#extensions#tabline#{s:formatter}#format(a:nr, get(s:, 'current_buffer_list', s:get_buffer_list()))
|
||||
let buffer_list = exists('s:current_buffer_list')
|
||||
\ ? s:current_buffer_list
|
||||
\ : s:get_buffer_list()
|
||||
return airline#extensions#tabline#{s:formatter}#format(a:nr, buffer_list)
|
||||
endfunction
|
||||
|
||||
function! s:get_buffer_list()
|
||||
|
|
Loading…
Reference in New Issue
Block a user