From 5ad74801b74a69b2cb8dbe0c1a0e0b9a5d251eb2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 25 Mar 2026 18:40:02 -0400 Subject: Fix Start+E display (only 5 lines were shown, now 6); clear an extra byte in edbox_clear() in case page 6 wasn't empty at startup. --- font_dl.asm | 3 ++- src/edbox.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/font_dl.asm b/font_dl.asm index 3cd43e5..a48699a 100644 --- a/font_dl.asm +++ b/font_dl.asm @@ -83,7 +83,8 @@ dl_status_lms .byte $70, $70, $70, $70, $70, $70, $70, $70 .byte $42 .word $0600 ; edit_box from addrs.c - .byte $02, $02, $02, $02 + .byte $02, $02, $02, $02, $02 + .byte $00 .byte $42 .word $a798 ; status_box from addrs.c .byte $06 ; GR.1 diff --git a/src/edbox.c b/src/edbox.c index dc1a8e2..9c042e7 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -28,7 +28,7 @@ static void show_cursor(void) { } void edbox_clear(void) { - memset(edit_box, 0, EDBOX_SIZE); + memset(edit_box, 0, EDBOX_SIZE + 1); edbox_pos = edbox_len = 0; show_cursor(); // not needed? seems it is.. } -- cgit v1.2.3