From: Thomas Roessler Date: Fri, 13 Apr 2001 23:20:15 +0000 (+0000) Subject: Fix KEY_ENTER. From EGE. X-Git-Tag: mutt-1-3-18-rel~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a116bc2768ad6ba282b53c3e1a3754df74ebc381;p=mutt Fix KEY_ENTER. From EGE. --- diff --git a/enter.c b/enter.c index bf3c725f..9b047fcb 100644 --- a/enter.c +++ b/enter.c @@ -614,7 +614,13 @@ self_insert: /* use the raw keypress */ ch = LastKey; - /* this probably shouldn't happen */ +#ifdef KEY_ENTER + /* treat ENTER the same as RETURN */ + if (ch == KEY_ENTER) + ch = '\r'; +#endif + + /* quietly ignore all other function keys */ if (ch & ~0xff) continue;