mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use ^= instead of a verbose alternative. ok nicm@
This commit is contained in:
		@@ -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)
 | 
						if ((c = cmd_find_client(cmdq, args_get(args, 'c'), 0)) == NULL)
 | 
				
			||||||
		return (CMD_RETURN_ERROR);
 | 
							return (CMD_RETURN_ERROR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (args_has(args, 'r')) {
 | 
						if (args_has(args, 'r'))
 | 
				
			||||||
		if (c->flags & CLIENT_READONLY)
 | 
							c->flags ^= CLIENT_READONLY;
 | 
				
			||||||
			c->flags &= ~CLIENT_READONLY;
 | 
					 | 
				
			||||||
		else
 | 
					 | 
				
			||||||
			c->flags |= CLIENT_READONLY;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tablename = args_get(args, 'T');
 | 
						tablename = args_get(args, 'T');
 | 
				
			||||||
	if (tablename != NULL) {
 | 
						if (tablename != NULL) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user