Files
vim-airline/autoload/airline/extensions/tabline/formatters/tabnr.vim
Christian Brabandt 1028c6ea12 tabnr: replace by a new naive function
This function simply returns the current tabnumber followed by the
number of buffers in the current tabpage.

The previous one either was broken long ago or did not work as expected.

fixes #2616
2023-01-11 16:41:08 +01:00

11 lines
302 B
VimL

" MIT License. Copyright (c) 2017-2021 Christian Brabandt et al.
" vim: et ts=2 sts=2 sw=2
scriptencoding utf-8
function! airline#extensions#tabline#formatters#tabnr#format(nr, buflist)
let spc=g:airline_symbols.space
return printf("%s %d/%d", spc, a:nr, len(tabpagebuflist(a:nr)))
endfunction