From 78fa73b61c0fd071cccbdee548f1220cf69368c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 22 Oct 2015 12:15:44 +0200 Subject: vis: remove yet more global state --- config.def.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 3bc6a18..e3f8e92 100644 --- a/config.def.h +++ b/config.def.h @@ -1154,8 +1154,8 @@ static void vis_mode_operator_leave(Vis *vis, Mode *new) { static void vis_mode_operator_input(Vis *vis, const char *str, size_t len) { /* invalid operator */ - action_reset(&vis->action); - switchmode_to(vis->mode_prev); + action_reset(vis, &vis->action); + switchmode_to(vis, vis->mode_prev); } static KeyBinding vis_operator_options[] = { @@ -1361,7 +1361,7 @@ static void vis_mode_insert_input(Vis *vis, const char *str, size_t len) { buffer_truncate(&vis->buffer_repeat); buffer_append(&vis->buffer_repeat, str, len); oldpos = pos + len; - action_reset(&vis->action_prev); + action_reset(vis, &vis->action_prev); vis->action_prev.op = &ops[OP_REPEAT_INSERT]; editor_insert_key(vis, str, len); } @@ -1382,7 +1382,7 @@ static void vis_mode_replace_input(Vis *vis, const char *str, size_t len) { buffer_truncate(&vis->buffer_repeat); buffer_append(&vis->buffer_repeat, str, len); oldpos = pos + len; - action_reset(&vis->action_prev); + action_reset(vis, &vis->action_prev); vis->action_prev.op = &ops[OP_REPEAT_REPLACE]; editor_replace_key(vis, str, len); } -- cgit v1.2.3