diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-07-31 00:10:35 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-07-31 00:10:35 +0100 |
commit | 526ce3a130732d4a2374a6e36a689d9e0cf5cc34 (patch) | |
tree | 9b6f76dbc70bf9a4d2becb9b9d8103eb57663aa0 /screen.c | |
parent | 6da2f3f89afda08eeba385da1c36414154113d47 (diff) |
preliminary support for undo
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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){ |