fix detection of tab count. resolves #304.

This commit is contained in:
Bailey Ling 2013-10-08 10:00:29 -04:00
parent 047e40a3e1
commit 00cd0be601

View File

@ -35,7 +35,7 @@ function! airline#extensions#tabline#init(ext)
if s:show_buffers == 1
autocmd CursorMoved * call <sid>on_cursormove(s:buf_min_count, len(s:get_buffer_list()))
else
autocmd CursorMoved * call <sid>on_cursormove(s:tab_min_count, tabpagenr('$'))
autocmd TabEnter * call <sid>on_cursormove(s:tab_min_count, tabpagenr('$'))
endif
endif