mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-10 22:11:51 +08:00
fix detection of tab count. resolves #304.
This commit is contained in:
@@ -35,7 +35,7 @@ function! airline#extensions#tabline#init(ext)
|
|||||||
if s:show_buffers == 1
|
if s:show_buffers == 1
|
||||||
autocmd CursorMoved * call <sid>on_cursormove(s:buf_min_count, len(s:get_buffer_list()))
|
autocmd CursorMoved * call <sid>on_cursormove(s:buf_min_count, len(s:get_buffer_list()))
|
||||||
else
|
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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user