To: vim_dev@googlegroups.com Subject: Patch 9.0.0149 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0149 Problem: Test for fuzzy completion fails sometimes. Solution: Use a more specific file name to minimize the chance of matching a random directory name. (closes #10854) Files: src/testdir/test_cmdline.vim *** ../vim-9.0.0148/src/testdir/test_cmdline.vim 2022-07-26 22:01:32.377972135 +0100 --- src/testdir/test_cmdline.vim 2022-08-06 10:25:28.218140574 +0100 *************** *** 2423,2439 **** " buffer name fuzzy completion func Test_fuzzy_completion_bufname() set wildoptions& ! edit SomeFile.txt enew ! call feedkeys(":b SF\\\"\", 'tx') ! call assert_equal('"b SF', @:) ! call feedkeys(":b S*File.txt\\\"\", 'tx') ! call assert_equal('"b SomeFile.txt', @:) set wildoptions=fuzzy ! call feedkeys(":b SF\\\"\", 'tx') ! call assert_equal('"b SomeFile.txt', @:) ! call feedkeys(":b S*File.txt\\\"\", 'tx') ! call assert_equal('"b S*File.txt', @:) %bw! set wildoptions& endfunc --- 2423,2440 ---- " buffer name fuzzy completion func Test_fuzzy_completion_bufname() set wildoptions& ! " Use a long name to reduce the risk of matching a random directory name ! edit SomeRandomFileWithLetters.txt enew ! call feedkeys(":b SRFWL\\\"\", 'tx') ! call assert_equal('"b SRFWL', @:) ! call feedkeys(":b S*FileWithLetters.txt\\\"\", 'tx') ! call assert_equal('"b SomeRandomFileWithLetters.txt', @:) set wildoptions=fuzzy ! call feedkeys(":b SRFWL\\\"\", 'tx') ! call assert_equal('"b SomeRandomFileWithLetters.txt', @:) ! call feedkeys(":b S*FileWithLetters.txt\\\"\", 'tx') ! call assert_equal('"b S*FileWithLetters.txt', @:) %bw! set wildoptions& endfunc *** ../vim-9.0.0148/src/version.c 2022-08-05 21:39:26.960564295 +0100 --- src/version.c 2022-08-06 10:26:30.021855428 +0100 *************** *** 737,738 **** --- 737,740 ---- { /* Add new patch number below this line */ + /**/ + 149, /**/ -- hundred-and-one symptoms of being an internet addict: 250. You've given up the search for the "perfect woman" and instead, sit in front of the PC until you're just too tired to care. /// 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 ///