diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-13 01:38:17 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-13 01:38:51 -0400 |
| commit | 172db1bcaa88b51326e9b788022985c97276dbfb (patch) | |
| tree | 40455c46fe46553d94be0865ab93c05b4da3fa8f /src/edbox.c | |
| parent | 7a0ae36af58e684b4108f817a15000d09adf1722 (diff) | |
| download | fujinet-chat-172db1bcaa88b51326e9b788022985c97276dbfb.tar.gz | |
Get rid of edbox_callback() abstraction (never used it anyway). 7696 bytes free.
Diffstat (limited to 'src/edbox.c')
| -rw-r--r-- | src/edbox.c | 9 |
1 files changed, 3 insertions, 6 deletions
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: |
