From 9af715eeb055d5e2ad925ec36594520bf38ec2d8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 25 Mar 2013 11:44:17 +0000 Subject: Process ^[ as meta when a partial key is found. --- usr.bin/tmux/tty-keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/tty-keys.c') diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index aab045c4ea8..c31402d7d43 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.57 2013/03/25 11:36:25 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.58 2013/03/25 11:44:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -498,6 +498,7 @@ tty_keys_next(struct tty *tty) goto complete_key; } +first_key: /* Is this a meta key? */ if (len >= 2 && buf[0] == '\033') { if (buf[1] != '\033') { @@ -518,7 +519,6 @@ tty_keys_next(struct tty *tty) } } -first_key: /* No key found, take first. */ key = (u_char) *buf; size = 1; -- cgit v1.2.3