Patch 9.0.0030
Problem: Matchfuzzy test depends on path of current directory.
Solution: Use fnamemodify() to remove the path. (Robin Becker,
closes #10650)
Files: src/testdir/test_matchfuzzy.vim
*** ../vim-9.0.0029/src/testdir/test_matchfuzzy.vim 2022-06-17
18:19:20.000000000 +0100
--- src/testdir/test_matchfuzzy.vim 2022-07-02 19:41:30.863793058 +0100
***************
*** 57,63 ****
%bw!
eval ['somebuf', 'anotherone', 'needle', 'yetanotherone']->map({_, v ->
bufadd(v) + bufload(v)})
! let l = getbufinfo()->map({_, v -> v.name})->matchfuzzy('ndl')
call assert_equal(1, len(l))
call assert_match('needle', l[0])
--- 57,63 ----
%bw!
eval ['somebuf', 'anotherone', 'needle', 'yetanotherone']->map({_, v ->
bufadd(v) + bufload(v)})
! let l = getbufinfo()->map({_, v -> fnamemodify(v.name,
':t')})->matchfuzzy('ndl')
call assert_equal(1, len(l))
call assert_match('needle', l[0])
*** ../vim-9.0.0029/src/version.c 2022-07-02 17:55:14.628322357 +0100
--- src/version.c 2022-07-02 19:42:57.299405433 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 30,
/**/
--
Portable Computer: A device invented to force businessmen
to work at home, on vacation, and on business trips.
/// 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/20220702194841.1660B1C091A%40moolenaar.net.