Merge branch 'master' into dev

This commit is contained in:
Bailey Ling 2013-09-07 01:57:39 +00:00
commit db58294871
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ let s:buf_min_count = get(g:, 'airline#extensions#tabline#buffer_min_count', 0)
let s:buf_len = 0
" TODO: temporary
let s:buf_max = get(g:, 'airline#extensions#tabline#buffer_max', 6)
let s:buf_max = get(g:, 'airline#extensions#tabline#buffer_max', winwidth(0) / 16)
function! airline#extensions#tabline#init(ext)
if has('gui_running')
@ -99,7 +99,7 @@ function! s:get_buffer_list()
" TODO: temporary fix; force the active buffer to be first when there are many buffers open
if len(buffers) > s:buf_max && index(buffers, cur) > -1
while buffers[0] != cur
while buffers[1] != cur
let first = remove(buffers, 0)
call add(buffers, first)
endwhile