aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c9
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: