From: Bram Moolenaar Date: Sat, 6 Aug 2022 09:28:19 +0000 (+0100) Subject: patch 9.0.0149: test for fuzzy completion fails sometimes X-Git-Tag: v9.0.0149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ac4b1a24e3ba52698a0d24b22cdd2e1c7895417;p=vim patch 9.0.0149: test for fuzzy completion fails sometimes 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) --- diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index cd9aa2771..912f3a5d1 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -2423,17 +2423,18 @@ endfunc " buffer name fuzzy completion func Test_fuzzy_completion_bufname() set wildoptions& - edit SomeFile.txt + " Use a long name to reduce the risk of matching a random directory name + edit SomeRandomFileWithLetters.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', @:) + 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 SF\\\"\", 'tx') - call assert_equal('"b SomeFile.txt', @:) - call feedkeys(":b S*File.txt\\\"\", 'tx') - call assert_equal('"b S*File.txt', @:) + 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 diff --git a/src/version.c b/src/version.c index e32b8095d..acecc1172 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 149, /**/ 148, /**/