aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index aa3360e..7ccfa22 100644
--- a/vis.c
+++ b/vis.c
@@ -858,6 +858,9 @@ static void replace(const Arg *arg) {
if (!k.str[0])
return;
size_t pos = window_cursor_get(vis->win->win);
+ action_reset(&action_prev);
+ action_prev.op = &ops[OP_REPEAT_REPLACE];
+ buffer_put(&buffer_repeat, k.str, strlen(k.str));
editor_delete_key(vis);
editor_insert_key(vis, k.str, strlen(k.str));
window_cursor_to(vis->win->win, pos);