From f94ca39e2b9b5da0b6ec17e8096f6eeefbcf2cdb Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 21 Mar 2026 06:46:52 -0400 Subject: Pressing backspace in an empty edit box hides the edit box. --- src/edbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/edbox.c b/src/edbox.c index beb25be..049771d 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -197,7 +197,10 @@ static void normal_keystroke(void) { del_to_end(); break; case CH_DEL: - backspace(); + if(!edbox_len) + edbox_hide(); + else + backspace(); break; case 0x02: /* ^B */ back_word(); -- cgit v1.2.3