summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 798a4dd0d2e..804cc73737f 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.128 2017/09/10 08:01:23 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.129 2017/10/05 13:29:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1693,11 +1693,32 @@ input_csi_dispatch_winops(struct input_ctx *ictx)
/* FALLTHROUGH */
case 9:
case 10:
+ m++;
+ if (input_get(ictx, m, 0, -1) == -1)
+ return;
+ break;
case 22:
+ m++;
+ switch (input_get(ictx, m, 0, -1)) {
+ case -1:
+ return;
+ case 0:
+ case 2:
+ screen_push_title(ictx->ctx.s);
+ break;
+ }
+ break;
case 23:
m++;
- if (input_get(ictx, m, 0, -1) == -1)
+ switch (input_get(ictx, m, 0, -1)) {
+ case -1:
return;
+ case 0:
+ case 2:
+ screen_pop_title(ictx->ctx.s);
+ server_status_window(ictx->wp->window);
+ break;
+ }
break;
case 18:
input_reply(ictx, "\033[8;%u;%ut", wp->sy, wp->sx);