Patch 9.0.1129
Problem:    Sporadic Test_range() failure.
Solution:   Clear typeahead.  Move to a separate function. (issue #22771)
Files:      src/testdir/test_functions.vim


*** ../vim-9.0.1128/src/testdir/test_functions.vim      2022-11-14 
19:49:09.662298086 +0000
--- src/testdir/test_functions.vim      2023-01-02 11:55:26.116293122 +0000
***************
*** 1622,1627 ****
--- 1622,1640 ----
    call assert_fails('call inputlist(test_null_list())', 'E686:')
  endfunc
  
+ func Test_range_inputlist()
+   " flush out any garbage left in the buffer
+   while getchar(0)
+   endwhile
+ 
+   call feedkeys(":let result = inputlist(range(10))\<CR>1\<CR>", 'x')
+   call assert_equal(1, result)
+   call feedkeys(":let result = inputlist(range(3, 10))\<CR>1\<CR>", 'x')
+   call assert_equal(1, result)
+ 
+   unlet result
+ endfunc
+ 
  func Test_balloon_show()
    CheckFeature balloon_eval
  
***************
*** 2550,2561 ****
    call assert_equal(1, index(range(1, 5), 2))
    call assert_fails("echo index([1, 2], 1, [])", 'E745:')
  
-   " inputlist()
-   call feedkeys(":let result = inputlist(range(10))\<CR>1\<CR>", 'x')
-   call assert_equal(1, result)
-   call feedkeys(":let result = inputlist(range(3, 10))\<CR>1\<CR>", 'x')
-   call assert_equal(1, result)
- 
    " insert()
    call assert_equal([42, 1, 2, 3, 4, 5], insert(range(1, 5), 42))
    call assert_equal([42, 1, 2, 3, 4, 5], insert(range(1, 5), 42, 0))
--- 2563,2568 ----
*** ../vim-9.0.1128/src/version.c       2023-01-01 20:31:26.677588486 +0000
--- src/version.c       2023-01-02 11:57:21.068357083 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1129,
  /**/

-- 
ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY
                  KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T
                  HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR
                  LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER),
                  BROTHER MAYNARD
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/20230102115953.A55241C0AA4%40moolenaar.net.

Raspunde prin e-mail lui