From baa9db41224b06ece0e2954cbff953ef19d20f6c Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 27 Apr 2023 11:29:11 -0700 Subject: [PATCH] (notepad) Catch space left in note reliably --- gui/notepad/notepad.tal | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/notepad/notepad.tal b/gui/notepad/notepad.tal index 9cdb7b2..39cc475 100644 --- a/gui/notepad/notepad.tal +++ b/gui/notepad/notepad.tal @@ -163,10 +163,9 @@ BRK @insert ( char -- ) - ( space ok ) - #fff0 get-eof SUB2 ORA ?&valid + .selection/from LDZ2 scap get-page #1000 ADD2 LTH2 ?&has-space POP JMP2r - &valid + &has-space ( convert linebreaks ) DUP #0d EQU #03 MUL SUB