Various minor style and spacing nits.

This commit is contained in:
nicm 2014-09-01 21:50:18 +00:00
parent e075198049
commit 4e956d545a
14 changed files with 21 additions and 21 deletions

View File

@ -124,14 +124,14 @@ cmdq_guard(struct cmd_q *cmdq, const char *guard, int flags)
struct client *c = cmdq->client; struct client *c = cmdq->client;
if (c == NULL) if (c == NULL)
return 0; return (0);
if (!(c->flags & CLIENT_CONTROL)) if (!(c->flags & CLIENT_CONTROL))
return 0; return (0);
evbuffer_add_printf(c->stdout_data, "%%%s %ld %u %d\n", guard, evbuffer_add_printf(c->stdout_data, "%%%s %ld %u %d\n", guard,
(long) cmdq->time, cmdq->number, flags); (long) cmdq->time, cmdq->number, flags);
server_push_stdout(c); server_push_stdout(c);
return 1; return (1);
} }
/* Add command list to queue and begin processing if needed. */ /* Add command list to queue and begin processing if needed. */

View File

@ -254,7 +254,7 @@ cmd_set_option_user(struct cmd *self, struct cmd_q *cmdq, const char* optstr,
if (args_has(args, 'o') && options_find1(oo, optstr) != NULL) { if (args_has(args, 'o') && options_find1(oo, optstr) != NULL) {
if (!args_has(args, 'q')) { if (!args_has(args, 'q')) {
cmdq_error(cmdq, "already set: %s", optstr); cmdq_error(cmdq, "already set: %s", optstr);
return CMD_RETURN_ERROR; return (CMD_RETURN_ERROR);
} }
return (CMD_RETURN_NORMAL); return (CMD_RETURN_NORMAL);
} }

View File

@ -327,7 +327,7 @@ screen_check_selection(struct screen *s, u_int px, u_int py)
return (0); return (0);
if (py == sel->sy && px < sel->sx) if (py == sel->sy && px < sel->sx)
return 0; return (0);
if (py == sel->ey && px > sel->ex) if (py == sel->ey && px > sel->ex)
return (0); return (0);