mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 10:25:37 +00:00
Use ^= instead of a verbose alternative. ok nicm@
This commit is contained in:
parent
b9563340b7
commit
dbfce2a4d8
1 changed files with 2 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue