From de31d1fa6ae04a6893d0127d4f18a1413d5b5f76 Mon Sep 17 00:00:00 2001 From: Wolfgang Corcoran-Mathe Date: Tue, 27 Jan 2015 11:37:42 -0500 Subject: 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. --- vis.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 87d6cd1..2ea6de0 100644 --- 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); } -- cgit v1.2.3