mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
19afd842bf
9
format.c
9
format.c
@ -191,10 +191,15 @@ static void
|
|||||||
format_job_update(struct job *job)
|
format_job_update(struct job *job)
|
||||||
{
|
{
|
||||||
struct format_job *fj = job->data;
|
struct format_job *fj = job->data;
|
||||||
char *line;
|
struct evbuffer *evb = job->event->input;
|
||||||
|
char *line = NULL, *next;
|
||||||
time_t t;
|
time_t t;
|
||||||
|
|
||||||
if ((line = evbuffer_readline(job->event->input)) == NULL)
|
while ((next = evbuffer_readline(evb)) != NULL) {
|
||||||
|
free(line);
|
||||||
|
line = next;
|
||||||
|
}
|
||||||
|
if (line == NULL)
|
||||||
return;
|
return;
|
||||||
fj->updated = 1;
|
fj->updated = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user