aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index aa079d7..4e7b5da 100644
--- a/config.def.h
+++ b/config.def.h
@@ -572,8 +572,8 @@ static void vis_mode_insert_input(const char *str, size_t len) {
static size_t oldpos = EPOS;
size_t pos = window_cursor_get(vis->win->win);
if (pos != oldpos)
- buffer_truncate(&buffer_repeat);
- buffer_append(&buffer_repeat, str, len);
+ buffer_truncate(&vis->buffer_repeat);
+ buffer_append(&vis->buffer_repeat, str, len);
oldpos = pos + len;
action_reset(&action_prev);
action_prev.op = &ops[OP_REPEAT_INSERT];
@@ -594,8 +594,8 @@ static void vis_mode_replace_input(const char *str, size_t len) {
static size_t oldpos = EPOS;
size_t pos = window_cursor_get(vis->win->win);
if (pos != oldpos)
- buffer_truncate(&buffer_repeat);
- buffer_append(&buffer_repeat, str, len);
+ buffer_truncate(&vis->buffer_repeat);
+ buffer_append(&vis->buffer_repeat, str, len);
oldpos = pos + len;
action_reset(&action_prev);
action_prev.op = &ops[OP_REPEAT_REPLACE];