diff options
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r-- | usr.bin/tmux/input-keys.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index 9f1716d3abe..6d74ce51265 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.80 2020/09/18 11:20:59 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.81 2020/11/17 08:13:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -330,7 +330,8 @@ static struct input_key_entry input_key_defaults[] = { .data = "\033[2;_~" }, { .key = KEYC_DC|KEYC_BUILD_MODIFIERS, - .data = "\033[3;_~" } + .data = "\033[3;_~" + } }; static const key_code input_key_modifiers[] = { 0, @@ -557,7 +558,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) modifier = '8'; break; default: - fatalx("invalid key modifiers: %llx", key); + goto missing; } xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier); bufferevent_write(bev, tmp, strlen(tmp)); |