From b242a5e1b161ea636c3f339dfb0abf6d3a8bd38a Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 7 Sep 2013 21:36:25 +0900 Subject: [PATCH] lightline#tabs() --- autoload/lightline.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 8bbe8a7..7d52043 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -3,7 +3,7 @@ " Version: 0.0 " Author: itchyny " License: MIT License -" Last Change: 2013/09/07 21:05:31. +" Last Change: 2013/09/07 21:36:03. " ============================================================================= let s:save_cpo = &cpo @@ -318,7 +318,7 @@ function! lightline#tabline() endfunction function! lightline#tabs() - let [t, l, x, y, z, u, d] = [tabpagenr(), tabpagenr('$'), [], [], [], '...', min([winwidth('.') / 40, 4])] + let [t, l, x, y, z, u, d] = [tabpagenr(), tabpagenr('$'), [], [], [], '...', max([winwidth('.') / 40, 2])] for i in range(1, l) call add(i