From e1be8ff22f3885c0f0e521e8a102e225ad060f68 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 5 Sep 2013 17:17:04 +0000 Subject: [PATCH] just in case...defense coding. --- autoload/airline/extensions/tabline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 31193dfa..f3e64f0b 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -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)