aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/edbox.c5
1 files changed, 4 insertions, 1 deletions
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();