From: Thomas Roessler Date: Tue, 13 Oct 1998 07:31:11 +0000 (+0000) Subject: Type Ctrl-V Ctrl-G in any input field. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0708a85b8bcdbfc2d974ae6b0599fbb18b6b0ce1;p=neomutt Type Ctrl-V Ctrl-G in any input field. --- diff --git a/enter.c b/enter.c index e45caf93f..f38eb3ec3 100644 --- a/enter.c +++ b/enter.c @@ -416,9 +416,12 @@ int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x, case OP_EDITOR_QUOTE_CHAR: ADDCH (LastKey); event = mutt_getch (); - LastKey = event.ch; - move (y, x + curpos - begin); - goto self_insert; + if(event.ch != -1) + { + LastKey = event.ch; + move (y, x + curpos - begin); + goto self_insert; + } default: BEEP ();