vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 6f93d9ba4e5956eafea2f2755945d0b8a702d761 parent 456fd12007a7f43b4ab563ffc92c4afa3ffc89c0 Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 16 Dec 2016 13:21:51 +0100 vis: process keys following an unmatched prefix individually Fixes #434 Diffstat:
| M | vis.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vis.c b/vis.c @@ -929,8 +929,10 @@ static void vis_keys_process(Vis *vis, size_t pos) { } } } - if (!action && vis->mode->input) + if (!action && vis->mode->input) { + end = (char*)vis_keys_next(vis, start); vis->mode->input(vis, start, end - start); + } start = cur = end; } }