From a116bc2768ad6ba282b53c3e1a3754df74ebc381 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 13 Apr 2001 23:20:15 +0000 Subject: [PATCH] Fix KEY_ENTER. From EGE. --- enter.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.40.0