Skip to content

Commit 22e7e86

Browse files
committed
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)
1 parent daaca8a commit 22e7e86

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_matchfuzzy.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Test_matchfuzzy()
5757

5858
%bw!
5959
eval ['somebuf', 'anotherone', 'needle', 'yetanotherone']->map({_, v -> bufadd(v) + bufload(v)})
60-
let l = getbufinfo()->map({_, v -> v.name})->matchfuzzy('ndl')
60+
let l = getbufinfo()->map({_, v -> fnamemodify(v.name, ':t')})->matchfuzzy('ndl')
6161
call assert_equal(1, len(l))
6262
call assert_match('needle', l[0])
6363

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ static char *(features[]) =
735735

736736
static int included_patches[] =
737737
{ /* Add new patch number below this line */
738+
/**/
739+
30,
738740
/**/
739741
29,
740742
/**/

0 commit comments

Comments
 (0)