diff options
| author | Wolfgang Corcoran-Mathe <first.lord.of.teal@gmail.com> | 2015-01-27 11:37:42 -0500 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-02-03 13:47:17 +0100 |
| commit | de31d1fa6ae04a6893d0127d4f18a1413d5b5f76 (patch) | |
| tree | 51a31c5aca95abda32c4c5dbaed36d09f46f9fd7 /vis.c | |
| parent | 52927a1b6509953063eaee51aef3b8d1ea28629d (diff) | |
| download | vis-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |
