vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ef07f1271a5e452b921c31f71fff817a9dc36191
parent a49046bb10f42caf06adb2c78495173e732c0c5e
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat,  3 Jan 2015 00:29:01 +0100

Make single character replacement repeatable

Diffstat:
Mvis.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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);