diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-10-22 12:15:44 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-10-22 19:50:24 +0200 |
| commit | 78fa73b61c0fd071cccbdee548f1220cf69368c6 (patch) | |
| tree | 34a7ceecbc3df08fa75265006998f7b2c1e2818a /config.def.h | |
| parent | 549fcb4c05b6134ff0fd17ec502e0c23b2827a91 (diff) | |
| download | vis-78fa73b61c0fd071cccbdee548f1220cf69368c6.tar.gz vis-78fa73b61c0fd071cccbdee548f1220cf69368c6.tar.xz | |
vis: remove yet more global state
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |
