From 4e5c1a43451f73a89a4635a42a71f8199e0adc64 Mon Sep 17 00:00:00 2001 From: Daniel Serpell Date: Sat, 27 Jul 2024 00:51:18 -0400 Subject: [PATCH] Minor optimization to the empty buffer check in the editor. --- src/editor.bas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/editor.bas b/src/editor.bas index 84a615c..d6473b2 100644 --- a/src/editor.bas +++ b/src/editor.bas @@ -645,10 +645,9 @@ ENDPROC '------------------------------------- ' Fix empty buffer PROC CheckEmptyBuf - poke MemEnd, $9B if peek(MemEnd-1) <> $9B - MemEnd = MemEnd + 1 poke MemEnd, $9b + MemEnd = MemEnd + 1 endif ENDPROC