From 9a1e2f92c328ec07920eebc1ca637a4b77d7c5c6 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 28 Jun 2017 06:45:31 +0000 Subject: [PATCH] Fix visual-silence (check accidentally the wrong way round), from Brad Town. Plus some tmux.1 fixes from jmc@. --- usr.bin/tmux/alerts.c | 5 ++--- usr.bin/tmux/tmux.1 | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/usr.bin/tmux/alerts.c b/usr.bin/tmux/alerts.c index 39a538e6044..c950603d6c3 100644 --- a/usr.bin/tmux/alerts.c +++ b/usr.bin/tmux/alerts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alerts.c,v 1.19 2017/04/28 19:13:55 nicm Exp $ */ +/* $OpenBSD: alerts.c,v 1.20 2017/06/28 06:45:31 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -285,8 +285,7 @@ alerts_check_silence(struct window *w) if (options_get_number(s->options, "bell-on-alert")) alerts_ring_bell(s); - - if (!options_get_number(s->options, "visual-silence")) + if (options_get_number(s->options, "visual-silence")) alerts_set_message(s, "Silence in window %d", wl->idx); } diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 157ef0c110b..cc7b9acfa63 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.563 2017/06/23 15:36:52 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.564 2017/06/28 06:45:31 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 23 2017 $ +.Dd $Mdocdate: June 28 2017 $ .Dt TMUX 1 .Os .Sh NAME @@ -2866,8 +2866,8 @@ command). .It Ic user-keys[] Ar key Set list of user-defined key escape sequences. Each item is associated with a key named -.Ql User0, -.Ql User1, +.Ql User0 , +.Ql User1 , and so on. .Pp For example: -- 2.20.1