mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Sync OpenBSD patchset 585:
Add "server options" which are server-wide and not bound to a session or window. Set and displayed with "set -s" and "show -s". Currently the only option is "quiet" (like command-line -q, allowing it to be set from .tmux.conf), but others will come along.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: server-client.c,v 1.26 2009-12-04 22:14:47 tcunha Exp $ */
|
||||
/* $Id: server-client.c,v 1.27 2009-12-10 16:59:02 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -639,7 +639,7 @@ server_client_msg_info(struct cmd_ctx *ctx, const char *fmt, ...)
|
||||
struct msg_print_data data;
|
||||
va_list ap;
|
||||
|
||||
if (be_quiet)
|
||||
if (options_get_number(&global_options, "quiet"))
|
||||
return;
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
Reference in New Issue
Block a user