Patch 8.2.1043
Problem: %a item in 'statusline' not tested.
Solution: Add a test. (Dominique Pellé, closes #6318)
Files: src/testdir/test_statusline.vim
*** ../vim-8.2.1042/src/testdir/test_statusline.vim 2020-04-08 21:50:18.876619651 +0200
--- src/testdir/test_statusline.vim 2020-06-23 19:59:08.507131499 +0200
***************
*** 64,70 ****
func Test_statusline()
CheckFeature quickfix
! new Xstatusline
only
set laststatus=2
set splitbelow
--- 64,80 ----
func Test_statusline()
CheckFeature quickfix
! " %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
*** ../vim-8.2.1042/src/version.c 2020-06-22 23:02:14.773942551 +0200
--- src/version.c 2020-06-23 20:00:09.158923096 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1043,
/**/
--
Permission is granted to read this message out aloud on Kings Cross Road,
London, under the condition that the orator is properly dressed.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///