mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +00:00
Various minor style and spacing nits.
This commit is contained in:
parent
e075198049
commit
4e956d545a
@ -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. */
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
2
screen.c
2
screen.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user