mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-19 21:30:56 +01:00
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
This commit is contained in:
commit
c577b47cd5
@ -112,6 +112,7 @@ cmd_run_shell_callback(struct job *job)
|
|||||||
do {
|
do {
|
||||||
if ((line = evbuffer_readline(job->event->input)) != NULL) {
|
if ((line = evbuffer_readline(job->event->input)) != NULL) {
|
||||||
cmd_run_shell_print (job, line);
|
cmd_run_shell_print (job, line);
|
||||||
|
free(line);
|
||||||
lines++;
|
lines++;
|
||||||
}
|
}
|
||||||
} while (line != NULL);
|
} while (line != NULL);
|
||||||
|
2
status.c
2
status.c
@ -676,7 +676,7 @@ status_job_callback(struct job *job)
|
|||||||
memcpy(buf, EVBUFFER_DATA(job->event->input), len);
|
memcpy(buf, EVBUFFER_DATA(job->event->input), len);
|
||||||
buf[len] = '\0';
|
buf[len] = '\0';
|
||||||
} else
|
} else
|
||||||
buf = xstrdup(line);
|
buf = line;
|
||||||
|
|
||||||
so->out = buf;
|
so->out = buf;
|
||||||
server_status_client(c);
|
server_status_client(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user