diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-08 00:51:18 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-08 00:51:18 +0000 |
commit | b3a3e2b011bd394f7c9576bedfaa0f498ced56f3 (patch) | |
tree | 66a30d0b9b89919b1c38c22439f5dd319d72ee12 /usr.bin/tmux/cmd-switch-client.c | |
parent | 830cf01dc01a5981eb686dd21c7637290bd6172a (diff) |
Use ^= instead of a verbose alternative. ok nicm@
Diffstat (limited to 'usr.bin/tmux/cmd-switch-client.c')
-rw-r--r-- | usr.bin/tmux/cmd-switch-client.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c index c75c0c64c2e..4d11de8ab9e 100644 --- a/usr.bin/tmux/cmd-switch-client.c +++ b/usr.bin/tmux/cmd-switch-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-switch-client.c,v 1.33 2015/10/28 09:51:55 nicm Exp $ */ +/* $OpenBSD: cmd-switch-client.c,v 1.34 2015/12/08 00:51:17 mmcc Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -52,12 +52,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) if ((c = cmd_find_client(cmdq, args_get(args, 'c'), 0)) == NULL) return (CMD_RETURN_ERROR); - if (args_has(args, 'r')) { - if (c->flags & CLIENT_READONLY) - c->flags &= ~CLIENT_READONLY; - else - c->flags |= CLIENT_READONLY; - } + if (args_has(args, 'r')) + c->flags ^= CLIENT_READONLY; tablename = args_get(args, 'T'); if (tablename != NULL) { |