diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-02-24 09:22:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-02-24 09:22:16 +0000 |
commit | 69a55172b3e2b78c42a0ec00401498706cde22e3 (patch) | |
tree | 3710a01ae7e20f92bfd87434e514a03f70cbf1f7 /usr.bin | |
parent | 180b971fadb0c274858e6827286440ce1cd05707 (diff) |
Correct client_prefix so it returns 1 if in prefix, not 0.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index 98bf7b02f41..abeb9537212 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.276 2021/02/22 08:18:13 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.277 2021/02/24 09:22:15 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1319,8 +1319,8 @@ format_cb_client_prefix(struct format_tree *ft) if (ft->c != NULL) { name = server_client_get_key_table(ft->c); if (strcmp(ft->c->keytable->name, name) == 0) - return (xstrdup("1")); - return (xstrdup("0")); + return (xstrdup("0")); + return (xstrdup("1")); } return (NULL); } |