summaryrefslogtreecommitdiff
path: root/main.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 /main.c
parent6da2f3f89afda08eeba385da1c36414154113d47 (diff)
preliminary support for undo
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index d2d5a55..4118ecc 100644
--- a/main.c
+++ b/main.c
@@ -122,6 +122,12 @@ void commands(FILE *fc){
case 'p':
paste();
break;
+ case 'u':
+ undo_change();
+ break;
+ case 'U':
+ redo_change();
+ break;
case 'q':
check_modified(fc);/** FALLTHROUGH **/
case 'Q':