summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-09-18 11:20:59 +0000
committernicm <nicm@openbsd.org>2020-09-18 11:20:59 +0000
commitcf415ead7251154627a807dd82f9ade7f80bc65c (patch)
tree98ab33595dc198bf160627825389276aa9f8dcfc /usr.bin/tmux/input-keys.c
parentzap redundant line (diff)
downloadwireguard-openbsd-cf415ead7251154627a807dd82f9ade7f80bc65c.tar.xz
wireguard-openbsd-cf415ead7251154627a807dd82f9ade7f80bc65c.zip
Some other warnings, GitHub issue 2382.
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r--usr.bin/tmux/input-keys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index ae2eccad7af..9f1716d3abe 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.79 2020/06/01 16:09:35 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.80 2020/09/18 11:20:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -556,6 +556,8 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
case KEYC_SHIFT|KEYC_META|KEYC_CTRL:
modifier = '8';
break;
+ default:
+ fatalx("invalid key modifiers: %llx", key);
}
xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier);
bufferevent_write(bev, tmp, strlen(tmp));