mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +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);
|
||||
xvasprintf(&msg, fmt, ap);
|
||||
va_end (ap);
|
||||
va_end(ap);
|
||||
|
||||
cfg_ncauses++;
|
||||
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) {
|
||||
if (!session_has(s, fs->w))
|
||||
continue;
|
||||
slist = xreallocarray (slist, ssize + 1, sizeof *slist);
|
||||
slist = xreallocarray(slist, ssize + 1, sizeof *slist);
|
||||
slist[ssize++] = s;
|
||||
}
|
||||
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);
|
||||
if (fs->s == NULL)
|
||||
goto fail;
|
||||
free (slist);
|
||||
free(slist);
|
||||
return (cmd_find_best_winlink_with_window(fs));
|
||||
|
||||
fail:
|
||||
@ -329,7 +329,7 @@ cmd_find_current_client(struct cmd_q *cmdq)
|
||||
TAILQ_FOREACH(c, &clients, entry) {
|
||||
if (c->session != s)
|
||||
continue;
|
||||
clist = xreallocarray (clist, csize + 1, sizeof *clist);
|
||||
clist = xreallocarray(clist, csize + 1, sizeof *clist);
|
||||
clist[csize++] = c;
|
||||
}
|
||||
if (csize != 0) {
|
||||
@ -739,7 +739,7 @@ cmd_find_get_pane_with_window(struct cmd_find_state *fs, const char *pane)
|
||||
void
|
||||
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->flags = flags;
|
||||
|
@ -236,7 +236,7 @@ key_bindings_init(void)
|
||||
if (error != 0)
|
||||
fatalx("bad default key");
|
||||
cmdq_run(cmdq, cmdlist, NULL);
|
||||
cmd_list_free (cmdlist);
|
||||
cmd_list_free(cmdlist);
|
||||
}
|
||||
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);
|
||||
if (o == NULL)
|
||||
o = options_set_style (oo, newname, "default", 0);
|
||||
o = options_set_style(oo, newname, "default", 0);
|
||||
gc = &o->style;
|
||||
|
||||
o = options_find1(oo, name);
|
||||
if (o == NULL)
|
||||
o = options_set_number (oo, name, 8);
|
||||
o = options_set_number(oo, name, 8);
|
||||
value = o->num;
|
||||
|
||||
if (strstr(name, "-bg") != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user