From: Pablo Ovelleiro Corral Date: Sun, 23 Dec 2018 17:06:47 +0000 (+0100) Subject: close command prompt when deleting the colon X-Git-Tag: 2019-10-25~395 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3407ccee4b3e524b12441b1873c7b4d9f6adcd3e;p=neomutt close command prompt when deleting the colon Fixes #1505 --- diff --git a/enter.c b/enter.c index 2d66e7609..b134361b0 100644 --- a/enter.c +++ b/enter.c @@ -303,7 +303,13 @@ int mutt_enter_string_full(char *buf, size_t buflen, int col, int flags, bool mu case OP_EDITOR_BACKSPACE: if (state->curpos == 0) + { + // Pressing backspace when no text is in the command prompt shold exit the prompt + if (state->lastchar == 0) + goto bye; + // Pressing backspace with text in the command prompt should just beep BEEP(); + } else { i = state->curpos;