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

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/20200729222900.lrjliemizyddyvpv%40debian.

Reply via email to