From c586208991e4291450757e3a19739f368aecbe5d Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 5 Jun 2020 07:33:57 +0000 Subject: 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. --- cmd-refresh-client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd-refresh-client.c') 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); } -- cgit