mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-09 14:55:45 +08:00
just in case...defense coding.
This commit is contained in:
1 parent
fc6cf26ac6
commit
e1be8ff22f
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user