summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-31 11:19:55 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-31 11:19:55 +0100
commitf3100ddd486d6f39b0c97c9c492bb6020bf3caf1 (patch)
tree729407153bc35d950ef5a46045f5d6a9c71bdcf2 /screen.c
parent526ce3a130732d4a2374a6e36a689d9e0cf5cc34 (diff)
add undo support for box, visual, cut/paste
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 2 insertions, 2 deletions
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){