=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/input-keys.c,v retrieving revision 1.91 retrieving revision 1.92 diff -c -r1.91 -r1.92 *** src/usr.bin/tmux/input-keys.c 2022/11/01 09:54:13 1.91 --- src/usr.bin/tmux/input-keys.c 2022/11/02 07:36:07 1.92 *************** *** 1,4 **** ! /* $OpenBSD: input-keys.c,v 1.91 2022/11/01 09:54:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: input-keys.c,v 1.92 2022/11/02 07:36:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 431,437 **** int input_key(struct screen *s, struct bufferevent *bev, key_code key) { ! struct input_key_entry *ike; key_code justkey, newkey, outkey, modifiers; struct utf8_data ud; char tmp[64], modifier; --- 431,437 ---- int input_key(struct screen *s, struct bufferevent *bev, key_code key) { ! struct input_key_entry *ike = NULL; key_code justkey, newkey, outkey, modifiers; struct utf8_data ud; char tmp[64], modifier; *************** *** 483,491 **** key &= ~KEYC_KEYPAD; if (~s->mode & MODE_KCURSOR) key &= ~KEYC_CURSOR; ! if (~s->mode & MODE_KEXTENDED) ! key &= ~KEYC_EXTENDED; ! ike = input_key_get(key); if (ike == NULL && (key & KEYC_META) && (~key & KEYC_IMPLIED_META)) ike = input_key_get(key & ~KEYC_META); if (ike == NULL && (key & KEYC_CURSOR)) --- 483,492 ---- key &= ~KEYC_KEYPAD; if (~s->mode & MODE_KCURSOR) key &= ~KEYC_CURSOR; ! if (s->mode & MODE_KEXTENDED) ! ike = input_key_get(key|KEYC_EXTENDED); ! if (ike == NULL) ! ike = input_key_get(key); if (ike == NULL && (key & KEYC_META) && (~key & KEYC_IMPLIED_META)) ike = input_key_get(key & ~KEYC_META); if (ike == NULL && (key & KEYC_CURSOR))