diff options
author | 2017-05-12 13:27:57 +0000 | |
---|---|---|
committer | 2017-05-12 13:27:57 +0000 | |
commit | a9c15d8f6958d14da057a0dcd640329c9330b5dd (patch) | |
tree | e6a072ea39cd1237fa26871ee4bd91609f2872a3 | |
parent | Scrolling needs to use background colour. (diff) | |
download | wireguard-openbsd-a9c15d8f6958d14da057a0dcd640329c9330b5dd.tar.xz wireguard-openbsd-a9c15d8f6958d14da057a0dcd640329c9330b5dd.zip |
Only redraw single client, and tweak some logging.
-rw-r--r-- | usr.bin/tmux/format.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index 697dd17beee..e69d04cd541 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.135 2017/05/12 10:45:38 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.136 2017/05/12 13:27:57 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -203,12 +203,12 @@ format_job_update(struct job *job) free(fj->out); fj->out = line; - log_debug("%s: %s: %s", __func__, fj->cmd, fj->out); + log_debug("%s: %p %s: %s", __func__, fj, fj->cmd, fj->out); t = time (NULL); if (fj->status && fj->last != t) { - TAILQ_FOREACH(c, &clients, entry) - server_status_client(c); + if (fj->client != NULL) + server_status_client(fj->client); fj->last = t; } } @@ -233,10 +233,11 @@ format_job_complete(struct job *job) } else buf = line; + log_debug("%s: %p %s: %s", __func__, fj, fj->cmd, buf); + if (*buf != '\0' || !fj->updated) { free(fj->out); fj->out = buf; - log_debug("%s: %s: %s", __func__, fj->cmd, fj->out); } else free(buf); |