From 119b05468d59a13a40919e4adf333821b7ddb644 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Mon, 31 Aug 2020 23:35:55 -0400 Subject: [PATCH] EDIT: Slight tweak to undo. Second OA-Z undoes the undo ;) --- apps/edit.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/edit.c b/apps/edit.c index 27d8399..f4e36b8 100644 --- a/apps/edit.c +++ b/apps/edit.c @@ -2241,9 +2241,12 @@ int edit(char *fname) { case 0x80 + 'z': // OA-z case 0x1a: // Ctrl-Z if (canundo) { - gapbegin = oldgapbegin; - gapend = oldgapend; - canundo = 0; + tmp = gapbegin; + gapbegin = oldgapbegin; + oldgapbegin = tmp; + tmp = gapend; + gapend = oldgapend; + oldgapend = tmp; draw_screen(); } else beep();