From 6130b4a84b41b71f4c0c58093a29585c6c67ff16 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 13 Jun 2022 20:20:34 +0800 Subject: vim-patch:8.2.1898: command modifier parsing always uses global cmdmod Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently. https://github.com/vim/vim/commit/e10044015841711b989f9a898d427bcc1fdb4c32 --- test/unit/search_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit') diff --git a/test/unit/search_spec.lua b/test/unit/search_spec.lua index ef5a0cb831..ce37ebfc3a 100644 --- a/test/unit/search_spec.lua +++ b/test/unit/search_spec.lua @@ -49,7 +49,7 @@ describe('search_regcomp', function() --crafted to call reverse_text with invalid utf globals.curwin.w_onebuf_opt.wo_rl = 1 globals.curwin.w_onebuf_opt.wo_rlc = to_cstr('s') - globals.cmdmod.keeppatterns = 1 + globals.cmdmod.cmod_flags = globals.CMOD_KEEPPATTERNS local fail = search_regcomp("a\192", 0,0,0) eq(1, fail) eq("\192a", get_search_pat()) -- cgit