# HG changeset patch # User Bram Moolenaar # Date 1656792002 -7200 # Node ID 209420b9d2ddc4c3bf96257bfb3ad32f208178dc # Parent f3013ca27dc8b39b95b569d77fc87397183ead5f patch 9.0.0030: matchfuzzy test depends on path of current directory Commit: https://github.com/vim/vim/commit/22e7e867e224596bd758260e4278ce6239c35ba5 Author: Bram Moolenaar Date: Sat Jul 2 20:48:01 2022 +0100 patch 9.0.0030: matchfuzzy test depends on path of current directory Problem: Matchfuzzy test depends on path of current directory. Solution: Use fnamemodify() to remove the path. (Robin Becker, closes #10650) diff --git a/src/testdir/test_matchfuzzy.vim b/src/testdir/test_matchfuzzy.vim --- a/src/testdir/test_matchfuzzy.vim +++ b/src/testdir/test_matchfuzzy.vim @@ -57,7 +57,7 @@ func Test_matchfuzzy() %bw! eval ['somebuf', 'anotherone', 'needle', 'yetanotherone']->map({_, v -> bufadd(v) + bufload(v)}) - let l = getbufinfo()->map({_, v -> v.name})->matchfuzzy('ndl') + let l = getbufinfo()->map({_, v -> fnamemodify(v.name, ':t')})->matchfuzzy('ndl') call assert_equal(1, len(l)) call assert_match('needle', l[0]) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 30, +/**/ 29, /**/ 28,