From f3100ddd486d6f39b0c97c9c492bb6020bf3caf1 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 31 Jul 2019 11:19:55 +0100 Subject: add undo support for box, visual, cut/paste --- screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 93dd459..b769641 100644 --- a/screen.c +++ b/screen.c @@ -410,8 +410,8 @@ void init_screen(){ cutbuf.num = 0; undo_sz = 0; - undo_cur = -1; - undo_lst = -1; + undo_cur = -2; + undo_lst = -2; } void find_nonblank_rect(int *x1, int *y1, int *x2, int *y2){ -- cgit v1.2.3