From 526ce3a130732d4a2374a6e36a689d9e0cf5cc34 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 31 Jul 2019 00:10:35 +0100 Subject: preliminary support for undo --- screen.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 3cbfe12..93dd459 100644 --- a/screen.c +++ b/screen.c @@ -408,6 +408,10 @@ void init_screen(){ cutbuf.sz = 0; cutbuf.l = NULL; cutbuf.num = 0; + + undo_sz = 0; + undo_cur = -1; + undo_lst = -1; } void find_nonblank_rect(int *x1, int *y1, int *x2, int *y2){ -- cgit v1.2.3