aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorWolfgang Corcoran-Mathe <first.lord.of.teal@gmail.com>2015-01-27 11:37:42 -0500
committerMarc André Tanner <mat@brain-dump.org>2015-02-03 13:47:17 +0100
commitde31d1fa6ae04a6893d0127d4f18a1413d5b5f76 (patch)
tree51a31c5aca95abda32c4c5dbaed36d09f46f9fd7 /vis.c
parent52927a1b6509953063eaee51aef3b8d1ea28629d (diff)
downloadvis-de31d1fa6ae04a6893d0127d4f18a1413d5b5f76.tar.gz
vis-de31d1fa6ae04a6893d0127d4f18a1413d5b5f76.tar.xz
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 (limited to 'vis.c')
-rw-r--r--vis.c1
1 files changed, 1 insertions, 0 deletions
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);
}