To: vim_dev@googlegroups.com Subject: Patch 9.0.0030 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///