Thomas Adam
unread,Jul 29, 2020, 6:29:05 PM7/29/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tmux-...@googlegroups.com
Hi,
I'm not sure what may have changed recently, but I've noticed the newline
being part of the status messages coming from panes which have remain-on-exit
set. For example:
Pane is dead (status 255, Wed Jul 29 23:27:17 2020
)
I'm pretty sure we never used to keep the newline from ctime_r() and yet it's
s part of the standard. It's one of those visually annoying bugs.
Anyway, this works:
diff --git a/server-fn.c b/server-fn.c
index d5e7cbd7..adc14a0f 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -342,6 +342,7 @@ server_destroy_pane(struct window_pane *wp, int notify)
time(&t);
ctime_r(&t, tim);
+ tim[strlen(tim) - 1] = '\0';
if (WIFEXITED(wp->status)) {
screen_write_nputs(&ctx, -1, &gc,
-- Thomas Adam