summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-06-26 18:28:31 +0000
committernicm <nicm@openbsd.org>2019-06-26 18:28:31 +0000
commitab90d8c35e80f520c64a0d61b50a1ad85ef94687 (patch)
tree86cfa3dd500afaaae9d8d407ffc43279ec64ce9f /usr.bin/tmux/server-client.c
parentallow more video(4) ioctls for the video pledge (required by chromium) (diff)
downloadwireguard-openbsd-ab90d8c35e80f520c64a0d61b50a1ad85ef94687.tar.xz
wireguard-openbsd-ab90d8c35e80f520c64a0d61b50a1ad85ef94687.zip
Pass keys that aren't 0-9 on to normal key processing when display-panes
is active (restores previous behaviour).
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 09f022902a4..aaac84fd242 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.289 2019/06/20 19:29:38 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.290 2019/06/26 18:28:31 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1220,9 +1220,13 @@ server_client_handle_key(struct client *c, struct key_event *event)
* blocked so they need to be processed immediately rather than queued.
*/
if ((~c->flags & CLIENT_READONLY) && c->overlay_key != NULL) {
- if (c->overlay_key(c, event) != 0)
+ switch (c->overlay_key(c, event)) {
+ case 0:
+ return (0);
+ case 1:
server_client_clear_overlay(c);
- return (0);
+ return (0);
+ }
}
/*