Trim newline from ctime, from Thomas Adam.

This commit is contained in:
nicm 2020-07-30 07:32:52 +00:00
parent 40e65c5115
commit 944177eec3

View File

@ -341,6 +341,7 @@ server_destroy_pane(struct window_pane *wp, int notify)
time(&t);
ctime_r(&t, tim);
tim[strcspn(tim, "\n")] = '\0';
if (WIFEXITED(wp->status)) {
screen_write_nputs(&ctx, -1, &gc,