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