mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Only redraw single client, and tweak some logging.
This commit is contained in:
parent
18bab30792
commit
5d3cf2ff15
9
format.c
9
format.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user