Skip to content

Commit

Permalink
Minor optimization to the empty buffer check in the editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Jul 27, 2024
1 parent f3c8758 commit 4e5c1a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/editor.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4e5c1a4

Please sign in to comment.