diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-01-03 00:29:01 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-01-03 00:29:01 +0100 |
| commit | c642ec497aab274fb4c7b50154ce5b8224463439 (patch) | |
| tree | d5e89f38ec87a847bea924e71c17d1d03f35eb10 /vis.c | |
| parent | f22fba6940e185b794ca1c6a79432d0547e5c648 (diff) | |
| download | vis-c642ec497aab274fb4c7b50154ce5b8224463439.tar.gz vis-c642ec497aab274fb4c7b50154ce5b8224463439.tar.xz | |
Make single character replacement repeatable
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
