vim-patch:9.0.1092: search error message doesn't show used pattern (#21518)

Problem:    Search error message doesn't show used pattern.
Solution:   Pass the actually used pattern to where the error message is
            given. (Rob Pilling, closes vim/vim#11742)

e86190e7c1

Co-authored-by: Rob Pilling <robpilling@gmail.com>
This commit is contained in:
zeertzjq
2022-12-24 07:55:03 +08:00
committed by GitHub
parent 3ea1524cf8
commit 3b9bd7bd43
4 changed files with 33 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ end)
describe('search_regcomp', function()
local search_regcomp = function(pat, pat_save, pat_use, options )
local regmatch = ffi.new("regmmatch_T")
local fail = search.search_regcomp(to_cstr(pat), pat_save, pat_use, options, regmatch)
local fail = search.search_regcomp(to_cstr(pat), nil, pat_save, pat_use, options, regmatch)
return fail, regmatch
end