mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-05 08:30:03 +08:00
just in case...defense coding.
This commit is contained in:
parent
fc6cf26ac6
commit
e1be8ff22f
|
@ -116,7 +116,7 @@ function! s:get_buffer_list()
|
|||
endfor
|
||||
|
||||
" TODO: temporary fix; force the active buffer to be first when there are many buffers open
|
||||
if len(buffers) > s:buf_max
|
||||
if len(buffers) > s:buf_max && index(buffers, cur) > -1
|
||||
while buffers[0] != cur
|
||||
let first = remove(buffers, 0)
|
||||
call add(buffers, first)
|
||||
|
|
Loading…
Reference in New Issue
Block a user