diff options
| author | 2020-06-12 08:35:01 +0000 | |
|---|---|---|
| committer | 2020-06-12 08:35:01 +0000 | |
| commit | 01c78be9b858d54143a8f30542919982d723e2f3 (patch) | |
| tree | b518faf7bd3143b36ad1aedab21fe1ed3b8e4509 /usr.bin/tmux/control.c | |
| parent | move-pane also defaults to marked pane now, reported by Ben Challenor. (diff) | |
| download | wireguard-openbsd-01c78be9b858d54143a8f30542919982d723e2f3.tar.xz wireguard-openbsd-01c78be9b858d54143a8f30542919982d723e2f3.zip | |
Check if a pane needs to be paused when output is written rather than
just when it is queued.
Diffstat (limited to 'usr.bin/tmux/control.c')
| -rw-r--r-- | usr.bin/tmux/control.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/tmux/control.c b/usr.bin/tmux/control.c index 151ae909086..ca0b37d5230 100644 --- a/usr.bin/tmux/control.c +++ b/usr.bin/tmux/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.41 2020/06/11 09:55:47 nicm Exp $ */ +/* $OpenBSD: control.c,v 1.42 2020/06/12 08:35:01 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -569,6 +569,13 @@ control_write_pending(struct client *c, struct control_pane *cp, size_t limit) } while (used != limit && !TAILQ_EMPTY(&cp->blocks)) { + if (control_check_age(c, wp, cp)) { + if (message != NULL) + evbuffer_free(message); + message = NULL; + break; + } + cb = TAILQ_FIRST(&cp->blocks); if (cb->t < t) age = t - cb->t; |
