aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-10-06 13:33:32 +0100
committerThomas Adam <thomas@xteddy.org>2017-10-06 13:33:32 +0100
commit2be01ab4ec95b147d4a779f72872099e5d466fde (patch)
tree0cb31291a023799d53a7fd702a602e89be4163ce /input.c
parent8aaf86a6ead9852631342d0d2d526a7eaede15cf (diff)
parentb462063cd59647e7f98eb11bde9bb0fef41bb2bd (diff)
downloadrtmux-2be01ab4ec95b147d4a779f72872099e5d466fde.tar.gz
rtmux-2be01ab4ec95b147d4a779f72872099e5d466fde.tar.bz2
rtmux-2be01ab4ec95b147d4a779f72872099e5d466fde.zip
Merge branch 'obsd-master'
Diffstat (limited to 'input.c')
-rw-r--r--input.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/input.c b/input.c
index e4aecf7d..42ff7f3b 100644
--- a/input.c
+++ b/input.c
@@ -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);