From ee3ded959f5486e921e45ac6753b21c2fcd63f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 8 Sep 2014 21:58:50 +0200 Subject: 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. --- vis.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index ec5bf6d..8af9134 100644 --- a/vis.c +++ b/vis.c @@ -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) -- cgit v1.2.3