mirror of
https://github.com/neovim/neovim.git
synced 2026-07-12 12:29:44 +00:00
vim-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 vim/vim#10650)
22e7e867e2
This commit is contained in:
@@ -59,7 +59,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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user