summaryrefslogtreecommitdiffstats
path: root/cmd-refresh-client.c
diff options
context:
space:
mode:
authornicm <nicm>2020-06-05 07:33:57 +0000
committernicm <nicm>2020-06-05 07:33:57 +0000
commitc586208991e4291450757e3a19739f368aecbe5d (patch)
tree1fd2a4d7c912879f02e1b43367825670e0538800 /cmd-refresh-client.c
parentd9cd493d093f14b934343a2e57998c86fbca2ef7 (diff)
Add support for pausing a pane when the output buffered for a control
mode client gets too far behind. The pause-after flag with a time is set on the pane with refresh-client -f and a paused pane may be resumed with refresh-client -A. GitHub issue 2217.
Diffstat (limited to 'cmd-refresh-client.c')
-rw-r--r--cmd-refresh-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c
index 4eb8417b..bbe0c736 100644
--- a/cmd-refresh-client.c
+++ b/cmd-refresh-client.c
@@ -66,6 +66,8 @@ cmd_refresh_client_update_offset(struct client *tc, const char *value)
control_set_pane_on(tc, wp);
else if (strcmp(colon, "off") == 0)
control_set_pane_off(tc, wp);
+ else if (strcmp(colon, "continue") == 0)
+ control_continue_pane(tc, wp);
out:
free(copy);
@@ -168,7 +170,7 @@ cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item)
}
tty_set_size(&tc->tty, x, y, 0, 0);
tc->flags |= CLIENT_SIZECHANGED;
- recalculate_sizes();
+ recalculate_sizes_now(1);
return (CMD_RETURN_NORMAL);
}