From a93bd4de66331e1f2943791ababdccf720079024 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 29 May 2024 14:13:47 -0700 Subject: [PATCH] Do not erase drawing on note mode --- gui/notepad/src/notepad.tal | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/notepad/src/notepad.tal b/gui/notepad/src/notepad.tal index 1d2d0a9..c4e3223 100644 --- a/gui/notepad/src/notepad.tal +++ b/gui/notepad/src/notepad.tal @@ -74,9 +74,11 @@ POP ( | key ) DUP #1b NEQ ?{ toggle-sketch POP BRK } - DUP #08 NEQ ?{ .selection/sketch LDZ ?{ erase POP BRK } + DUP #08 NEQ ?{ + .selection/sketch LDZ ?{ erase POP BRK } erase-sketch POP BRK } - DUP #7f NEQ ?{ .selection/sketch LDZ ?{ delete POP BRK } + DUP #7f NEQ ?{ + .selection/sketch LDZ ?{ delete POP BRK } erase-sketch POP BRK } DUP #09 LTH ?{ DUP insert } POP BRK