# HG changeset patch # User Bram Moolenaar # Date 1592936107 -7200 # Node ID fe06ee7d3511446c2414df2c15349a5c7e00c650 # Parent 3bf150ea4d44dd0a3877fe4bb6cb7f605269231a patch 8.2.1043: %a item in 'statusline' not tested Commit: https://github.com/vim/vim/commit/4014e2ceb03b8aeb947a0c671a099b677c8f2d5d Author: Bram Moolenaar Date: Tue Jun 23 20:00:50 2020 +0200 patch 8.2.1043: %a item in 'statusline' not tested Problem: %a item in 'statusline' not tested. Solution: Add a test. (Dominique Pell?, closes https://github.com/vim/vim/issues/6318) diff --git a/src/testdir/test_statusline.vim b/src/testdir/test_statusline.vim --- a/src/testdir/test_statusline.vim +++ b/src/testdir/test_statusline.vim @@ -64,7 +64,17 @@ endfunc func Test_statusline() CheckFeature quickfix - new Xstatusline + " %a: Argument list ({current} of {max}) + set statusline=%a + call assert_match('^\s*$', s:get_statusline()) + arglocal a1 a2 + rewind + call assert_match('^ (1 of 2)\s*$', s:get_statusline()) + next + call assert_match('^ (2 of 2)\s*$', s:get_statusline()) + e Xstatusline + call assert_match('^ ((2) of 2)\s*$', s:get_statusline()) + only set laststatus=2 set splitbelow diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1043, +/**/ 1042, /**/ 1041,