vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 43af330876a331423af7a444f63a0eeb2e451837
parent b620be56925491ac943410de0712d60fbb5538e8
Author: Wolfgang Corcoran-Mathe <first.lord.of.teal@gmail.com>
Date: Tue, 27 Jan 2015 11:37:42 -0500
Do not lump together replace actions
Currently, the replace operator in vis gets lumped with following actions
in the {un,re}do tree. Using the 'r' key several times then attempting
to undo the last replacement undoes the entire series.
Diffstat:
| M | vis.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/vis.c b/vis.c @@ -876,6 +876,7 @@ static void replace(const Arg *arg) { buffer_put(&buffer_repeat, k.str, strlen(k.str)); editor_delete_key(vis); editor_insert_key(vis, k.str, strlen(k.str)); + text_snapshot(vis->win->text); window_cursor_to(vis->win->win, pos); }