mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
Style spacing nits.
This commit is contained in:
parent
1282bb81fe
commit
8e9b6e0948
2
cfg.c
2
cfg.c
@ -121,7 +121,7 @@ cfg_add_cause(const char *fmt, ...)
|
|||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
xvasprintf(&msg, fmt, ap);
|
xvasprintf(&msg, fmt, ap);
|
||||||
va_end (ap);
|
va_end(ap);
|
||||||
|
|
||||||
cfg_ncauses++;
|
cfg_ncauses++;
|
||||||
cfg_causes = xreallocarray(cfg_causes, cfg_ncauses, sizeof *cfg_causes);
|
cfg_causes = xreallocarray(cfg_causes, cfg_ncauses, sizeof *cfg_causes);
|
||||||
|
@ -193,7 +193,7 @@ cmd_find_best_session_with_window(struct cmd_find_state *fs)
|
|||||||
RB_FOREACH(s, sessions, &sessions) {
|
RB_FOREACH(s, sessions, &sessions) {
|
||||||
if (!session_has(s, fs->w))
|
if (!session_has(s, fs->w))
|
||||||
continue;
|
continue;
|
||||||
slist = xreallocarray (slist, ssize + 1, sizeof *slist);
|
slist = xreallocarray(slist, ssize + 1, sizeof *slist);
|
||||||
slist[ssize++] = s;
|
slist[ssize++] = s;
|
||||||
}
|
}
|
||||||
if (ssize == 0)
|
if (ssize == 0)
|
||||||
@ -201,7 +201,7 @@ cmd_find_best_session_with_window(struct cmd_find_state *fs)
|
|||||||
fs->s = cmd_find_best_session(slist, ssize, fs->flags);
|
fs->s = cmd_find_best_session(slist, ssize, fs->flags);
|
||||||
if (fs->s == NULL)
|
if (fs->s == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
free (slist);
|
free(slist);
|
||||||
return (cmd_find_best_winlink_with_window(fs));
|
return (cmd_find_best_winlink_with_window(fs));
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
@ -329,7 +329,7 @@ cmd_find_current_client(struct cmd_q *cmdq)
|
|||||||
TAILQ_FOREACH(c, &clients, entry) {
|
TAILQ_FOREACH(c, &clients, entry) {
|
||||||
if (c->session != s)
|
if (c->session != s)
|
||||||
continue;
|
continue;
|
||||||
clist = xreallocarray (clist, csize + 1, sizeof *clist);
|
clist = xreallocarray(clist, csize + 1, sizeof *clist);
|
||||||
clist[csize++] = c;
|
clist[csize++] = c;
|
||||||
}
|
}
|
||||||
if (csize != 0) {
|
if (csize != 0) {
|
||||||
@ -739,7 +739,7 @@ cmd_find_get_pane_with_window(struct cmd_find_state *fs, const char *pane)
|
|||||||
void
|
void
|
||||||
cmd_find_clear_state(struct cmd_find_state *fs, struct cmd_q *cmdq, int flags)
|
cmd_find_clear_state(struct cmd_find_state *fs, struct cmd_q *cmdq, int flags)
|
||||||
{
|
{
|
||||||
memset (fs, 0, sizeof *fs);
|
memset(fs, 0, sizeof *fs);
|
||||||
|
|
||||||
fs->cmdq = cmdq;
|
fs->cmdq = cmdq;
|
||||||
fs->flags = flags;
|
fs->flags = flags;
|
||||||
|
@ -236,7 +236,7 @@ key_bindings_init(void)
|
|||||||
if (error != 0)
|
if (error != 0)
|
||||||
fatalx("bad default key");
|
fatalx("bad default key");
|
||||||
cmdq_run(cmdq, cmdlist, NULL);
|
cmdq_run(cmdq, cmdlist, NULL);
|
||||||
cmd_list_free (cmdlist);
|
cmd_list_free(cmdlist);
|
||||||
}
|
}
|
||||||
cmdq_free(cmdq);
|
cmdq_free(cmdq);
|
||||||
}
|
}
|
||||||
|
4
style.c
4
style.c
@ -168,12 +168,12 @@ style_update_new(struct options *oo, const char *name, const char *newname)
|
|||||||
|
|
||||||
o = options_find1(oo, newname);
|
o = options_find1(oo, newname);
|
||||||
if (o == NULL)
|
if (o == NULL)
|
||||||
o = options_set_style (oo, newname, "default", 0);
|
o = options_set_style(oo, newname, "default", 0);
|
||||||
gc = &o->style;
|
gc = &o->style;
|
||||||
|
|
||||||
o = options_find1(oo, name);
|
o = options_find1(oo, name);
|
||||||
if (o == NULL)
|
if (o == NULL)
|
||||||
o = options_set_number (oo, name, 8);
|
o = options_set_number(oo, name, 8);
|
||||||
value = o->num;
|
value = o->num;
|
||||||
|
|
||||||
if (strstr(name, "-bg") != NULL)
|
if (strstr(name, "-bg") != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user