1
0
forked from aniani/vim

patch 8.2.1043: %a item in 'statusline' not tested

Problem:    %a item in 'statusline' not tested.
Solution:   Add a test. (Dominique Pellé, closes #6318)
This commit is contained in:
Bram Moolenaar
2020-06-23 20:00:50 +02:00
parent df069eec3b
commit 4014e2ceb0
2 changed files with 13 additions and 1 deletions

View File

@@ -64,7 +64,17 @@ endfunc
func Test_statusline() func Test_statusline()
CheckFeature quickfix 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 only
set laststatus=2 set laststatus=2
set splitbelow set splitbelow

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1043,
/**/ /**/
1042, 1042,
/**/ /**/