To: vim_dev@googlegroups.com Subject: Patch 9.0.1129 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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))\1\", 'x') + call assert_equal(1, result) + call feedkeys(":let result = inputlist(range(3, 10))\1\", '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))\1\", 'x') - call assert_equal(1, result) - call feedkeys(":let result = inputlist(range(3, 10))\1\", '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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///