diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-04-11 10:39:46 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-11 10:43:23 +0200 |
| commit | 3ea63f3951dd8e1c624966d6966ea8ca0e359b09 (patch) | |
| tree | fc90659e0dfed41a9419edd233dde54751a38471 /config.def.h | |
| parent | 3f3125ee103401cf561b38b00f9b34187b8d6a52 (diff) | |
| download | vis-3ea63f3951dd8e1c624966d6966ea8ca0e359b09.tar.gz vis-3ea63f3951dd8e1c624966d6966ea8ca0e359b09.tar.xz | |
Eliminate global state for repetition of last modification
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 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]; |
