From: nicm Date: Wed, 24 Feb 2021 09:22:15 +0000 (+0000) Subject: Correct client_prefix so it returns 1 if in prefix, not 0. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3ac700a460d67dc7bd7c83f787b514441b1c0296;p=openbsd Correct client_prefix so it returns 1 if in prefix, not 0. --- 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 @@ -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); }