From 172db1bcaa88b51326e9b788022985c97276dbfb Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 13 Apr 2026 01:38:17 -0400 Subject: Get rid of edbox_callback() abstraction (never used it anyway). 7696 bytes free. --- src/edbox.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/edbox.c') diff --git a/src/edbox.c b/src/edbox.c index 7f232fd..eca60f8 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -25,8 +25,6 @@ char edbox_visible = 0; char edbox_pos; /* range 0 to EDBOX_SIZE - 1 */ char edbox_len; /* idem */ -void (*edbox_callback)(void); - void edbox_show(void) { u16 addr; @@ -55,8 +53,8 @@ void move_right(void) { /* note: c will never be an EOL. idea: when the edbox is completely full (240 chars), go - ahead and pretend the user pressed Return (call edbox_callback, - etc). not sure if this is more or less annoying than just + ahead and pretend the user pressed Return. + Not sure if this is more or less annoying than just refusing to accept more input until Return is pressed. */ void edbox_putc(char c) { if(!c) @@ -168,8 +166,7 @@ void edbox_keystroke(char c) { case CH_EOL: copy_to_old(); edbox_hide(); - if(edbox_callback) - (*edbox_callback)(); + cmd_execute(); edbox_clear(); break; case XCH_TAB: -- cgit v1.2.3