]> granicus.if.org Git - mutt/commitdiff
Fix KEY_ENTER. From EGE.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 13 Apr 2001 23:20:15 +0000 (23:20 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 13 Apr 2001 23:20:15 +0000 (23:20 +0000)
enter.c

diff --git a/enter.c b/enter.c
index bf3c725f8dc926a74064c18f7a1eeefa83e22c61..9b047fcbc38e7fa15f79b0629427570d1919529a 100644 (file)
--- 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;