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\<Tab>\<C-B>\"\<CR>", 'tx')
!   call assert_equal('"b SF', @:)
!   call feedkeys(":b S*File.txt\<Tab>\<C-B>\"\<CR>", 'tx')
!   call assert_equal('"b SomeFile.txt', @:)
    set wildoptions=fuzzy
!   call feedkeys(":b SF\<Tab>\<C-B>\"\<CR>", 'tx')
!   call assert_equal('"b SomeFile.txt', @:)
!   call feedkeys(":b S*File.txt\<Tab>\<C-B>\"\<CR>", '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\<Tab>\<C-B>\"\<CR>", 'tx')
!   call assert_equal('"b SRFWL', @:)
!   call feedkeys(":b S*FileWithLetters.txt\<Tab>\<C-B>\"\<CR>", 'tx')
!   call assert_equal('"b SomeRandomFileWithLetters.txt', @:)
    set wildoptions=fuzzy
!   call feedkeys(":b SRFWL\<Tab>\<C-B>\"\<CR>", 'tx')
!   call assert_equal('"b SomeRandomFileWithLetters.txt', @:)
!   call feedkeys(":b S*FileWithLetters.txt\<Tab>\<C-B>\"\<CR>", '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 -- [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/20220806092857.F16371C0F2E%40moolenaar.net.

Raspunde prin e-mail lui