summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-31 00:10:35 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-31 00:10:35 +0100
commit526ce3a130732d4a2374a6e36a689d9e0cf5cc34 (patch)
tree9b6f76dbc70bf9a4d2becb9b9d8103eb57663aa0 /screen.c
parent6da2f3f89afda08eeba385da1c36414154113d47 (diff)
preliminary support for undo
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 4 insertions, 0 deletions
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){