mirror of
https://github.com/vim-airline/vim-airline-themes
synced 2025-01-26 07:03:40 +00: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