diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-08 21:58:50 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-08 21:58:50 +0200 |
| commit | ee3ded959f5486e921e45ac6753b21c2fcd63f0f (patch) | |
| tree | 69bbccd4f7babce44dad355ac0dcc1573e9fa895 /vis.c | |
| parent | e7b6ac1574ba4dad280e6a45beb52dac4e3ea2e9 (diff) | |
| download | vis-ee3ded959f5486e921e45ac6753b21c2fcd63f0f.tar.gz vis-ee3ded959f5486e921e45ac6753b21c2fcd63f0f.tar.xz | |
Improve undo/redo
Currently a snapshot is taken whenever an operator is completed or
a certain idle time in either insert or replace mode is detected.
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -51,24 +51,6 @@ void vis_statusbar_set(Vis *vis, vis_statusbar_t statusbar) { vis->statusbar = statusbar; } -void vis_snapshot(Vis *vis) { - text_snapshot(vis->win->text); -} - -void vis_undo(Vis *vis) { - VisWin *win = vis->win; - // TODO window invalidation - if (text_undo(win->text)) - window_draw(win->win); -} - -void vis_redo(Vis *vis) { - VisWin *win = vis->win; - // TODO window invalidation - if (text_redo(win->text)) - window_draw(win->win); -} - static void vis_windows_arrange_horizontal(Vis *vis) { int n = 0, x = 0, y = 0; for (VisWin *win = vis->windows; win; win = win->next) |
