diff options
author | 2013-03-21 18:45:38 +0000 | |
---|---|---|
committer | 2013-03-21 18:45:38 +0000 | |
commit | f4e02e69f9135998a104cfb8241a21e2c86e2f7d (patch) | |
tree | b4be93350f36ab30c5e3d528eb563a3dad2ed34e /usr.bin/tmux/tty-keys.c | |
parent | Include the \033 in the key tree and adjust key matching for this change. (diff) | |
download | wireguard-openbsd-f4e02e69f9135998a104cfb8241a21e2c86e2f7d.tar.xz wireguard-openbsd-f4e02e69f9135998a104cfb8241a21e2c86e2f7d.zip |
Don't set key KEYC_NONE on xterm_keys_find match()
When calling xterm_keys_find(); if we get a complete match, don't set
the key to unknown before calling the action to complete the binding;
otherwise non-prefixed bindings will not work.
From Thomas Adam
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 840cfc52f35..cb363906087 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.51 2013/03/21 18:44:47 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.52 2013/03/21 18:45:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -473,7 +473,6 @@ tty_keys_next(struct tty *tty) /* Try to parse a key with an xterm-style modifier. */ switch (xterm_keys_find(buf, len, &size, &key)) { case 0: /* found */ - key = KEYC_NONE; goto complete_key; case -1: /* not found */ break; |