Patch 8.2.3616
Problem:    Arglist test does not clear the argument list consistently.
Solution:   Call Reset_arglist(). (Shougo Matsushita, closes #9154)
Files:      src/testdir/test_arglist.vim


*** ../vim-8.2.3615/src/testdir/test_arglist.vim        2021-08-14 
20:11:47.500966948 +0100
--- src/testdir/test_arglist.vim        2021-11-18 15:35:06.234566363 +0000
***************
*** 4,9 ****
--- 4,13 ----
  source shared.vim
  source term_util.vim
  
+ func Reset_arglist()
+   args a | %argd
+ endfunc
+ 
  func Test_argidx()
    args a b c
    last
***************
*** 30,35 ****
--- 34,41 ----
  endfunc
  
  func Test_argadd()
+   call Reset_arglist()
+ 
    %argdelete
    argadd a b c
    call assert_equal(0, argidx())
***************
*** 124,131 ****
  " Test for [count]argument and [count]argdelete commands
  " Ported from the test_argument_count.in test script
  func Test_argument()
!   " Clean the argument list
!   arga a | %argd
  
    let save_hidden = &hidden
    set hidden
--- 130,136 ----
  " Test for [count]argument and [count]argdelete commands
  " Ported from the test_argument_count.in test script
  func Test_argument()
!   call Reset_arglist()
  
    let save_hidden = &hidden
    set hidden
***************
*** 217,224 ****
  endfunc
  
  func Test_list_arguments()
!   " Clean the argument list
!   arga a | %argd
  
    " four args half the screen width makes two lines with two columns
    let aarg = repeat('a', &columns / 2 - 4)
--- 222,228 ----
  endfunc
  
  func Test_list_arguments()
!   call Reset_arglist()
  
    " four args half the screen width makes two lines with two columns
    let aarg = repeat('a', &columns / 2 - 4)
***************
*** 256,263 ****
  " Test for 0argadd and 0argedit
  " Ported from the test_argument_0count.in test script
  func Test_zero_argadd()
!   " Clean the argument list
!   arga a | %argd
  
    arga a b c d
    2argu
--- 260,266 ----
  " Test for 0argadd and 0argedit
  " Ported from the test_argument_0count.in test script
  func Test_zero_argadd()
!   call Reset_arglist()
  
    arga a b c d
    2argu
***************
*** 284,293 ****
    call assert_equal('file with spaces', expand('%'))
  endfunc
  
- func Reset_arglist()
-   args a | %argd
- endfunc
- 
  " Test for argc()
  func Test_argc()
    call Reset_arglist()
--- 287,292 ----
*** ../vim-8.2.3615/src/version.c       2021-11-18 13:56:33.603725506 +0000
--- src/version.c       2021-11-18 15:37:02.282299579 +0000
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     3616,
  /**/

-- 
Mental Floss prevents moral decay!

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211118153816.AC7EA1C6567%40moolenaar.net.

Raspunde prin e-mail lui