summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
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){