aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/search_spec.lua2
1 files changed, 1 insertions, 1 deletions
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())