changeset 2343:ddb30eaf2f56

(push_key_description): Ignore bits above meta_modifier.
author Richard M. Stallman <rms@gnu.org>
date Wed, 24 Mar 1993 10:05:49 +0000
parents f881f2936eec
children d21c82eba8ab
files src/keymap.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Wed Mar 24 02:48:44 1993 +0000
+++ b/src/keymap.c	Wed Mar 24 10:05:49 1993 +0000
@@ -1139,6 +1139,9 @@
      register unsigned int c;
      register char *p;
 {
+  /* Clear all the meaningless bits above the meta bit.  */
+  c &= meta_modifier | ~ - meta_modifier;
+
   if (c & alt_modifier)
     {
       *p++ = 'A';