mirror of
https://github.com/tmux/tmux.git
synced 2026-10-28 10:04:33 +08:00
Do not show a status message on a client with no session, from someone
in GitHub issue 5799.
This commit is contained in:
1 parent
dc9837f177
commit
beeffaba37
1 file changed
+2
-2
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: status.c,v 1.275 2026/10/16 07:59:06 nicm Exp $ */
|
||||
/* $OpenBSD: status.c,v 1.276 2026/10/23 12:17:09 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -553,7 +553,7 @@ status_message_set(struct client *c, int delay, int ignore_styles,
|
||||
|
||||
log_debug("%s: %s", __func__, s);
|
||||
|
||||
if (c == NULL) {
|
||||
if (c == NULL || c->session == NULL) {
|
||||
server_add_message("message: %s", s);
|
||||
free(s);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user