From 7924b340c2ed583eae83a6c27dd9f51902a9a57e Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 27 May 2024 20:46:28 -0700 Subject: [PATCH] Removed duplicated walk to line-start --- gui/notepad/src/notepad.tal | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gui/notepad/src/notepad.tal b/gui/notepad/src/notepad.tal index ee42d78..9700123 100644 --- a/gui/notepad/src/notepad.tal +++ b/gui/notepad/src/notepad.tal @@ -497,10 +497,12 @@ JMP2r LDAk #20 GTH ?&no-wrap DUP2 word-width .Screen/x DEI2 ADD2 #00d0 LTH2 ?&no-wrap ( tabbed ) - DUP2 find-line-start LDA2 #093e NEQ2 ?{ - #01 #0021 !draw-linebreak } - DUP2 find-line-start LDA2 #092d NEQ2 ?{ - #01 #0022 !draw-linebreak } + DUP2 find-line-start LDA2 + DUP2 #093e NEQ2 ?{ + POP2 #01 #0021 !draw-linebreak } + DUP2 #092d NEQ2 ?{ + POP2 #01 #0022 !draw-linebreak } + POP2 #01 #0008 !draw-linebreak &no-wrap ( char )