From 00cd0be601c7b32ba2f03b832f5703b3bd9a74a8 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 8 Oct 2013 10:00:29 -0400 Subject: [PATCH] fix detection of tab count. resolves #304. --- 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 c30370a..8e45401 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -35,7 +35,7 @@ function! airline#extensions#tabline#init(ext) if s:show_buffers == 1 autocmd CursorMoved * call on_cursormove(s:buf_min_count, len(s:get_buffer_list())) else - autocmd CursorMoved * call on_cursormove(s:tab_min_count, tabpagenr('$')) + autocmd TabEnter * call on_cursormove(s:tab_min_count, tabpagenr('$')) endif endif