summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-11-04 23:00:22 +0000
committernicm <nicm@openbsd.org>2009-11-04 23:00:22 +0000
commitc42e0682b3a2dafd24c1b5f3856a7c7f70110360 (patch)
treee31830579ee9e35d521f779e87169e6f21d0cc10
parentMove some common code into a function. (diff)
downloadwireguard-openbsd-c42e0682b3a2dafd24c1b5f3856a7c7f70110360.tar.xz
wireguard-openbsd-c42e0682b3a2dafd24c1b5f3856a7c7f70110360.zip
It would help if I read my own comments... make alt keys work again by sending
alt AND the key not alt instead of it.
-rw-r--r--usr.bin/tmux/input-keys.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index 61e15b298a9..ad7f2ba473d 100644
--- a/usr.bin/tmux/input-keys.c
+++ b/usr.bin/tmux/input-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input-keys.c,v 1.14 2009/11/04 22:43:11 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.15 2009/11/04 23:00:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -173,9 +173,8 @@ input_key(struct window_pane *wp, int key)
*/
if (key != KEYC_NONE && (key & ~KEYC_ESCAPE) < 0x100) {
if (key & KEYC_ESCAPE)
- ch = '\033';
- else
- ch = key & ~KEYC_ESCAPE;
+ bufferevent_write(wp->event, "\033", 1);
+ ch = key & ~KEYC_ESCAPE;
bufferevent_write(wp->event, &ch, 1);
return;
}