mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
A couple of other redundant checks/assignments.
This commit is contained in:
parent
5288801d3e
commit
886fdb1f7e
@ -269,7 +269,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
tmpsize *= 2;
|
tmpsize *= 2;
|
||||||
tmp = xrealloc(tmp, tmpsize);
|
tmp = xrealloc(tmp, tmpsize);
|
||||||
}
|
}
|
||||||
tmpused = strlcat(tmp, cp, tmpsize);
|
strlcat(tmp, cp, tmpsize);
|
||||||
tmpused = strlcat(tmp, " ", tmpsize);
|
tmpused = strlcat(tmp, " ", tmpsize);
|
||||||
free(cp);
|
free(cp);
|
||||||
|
|
||||||
@ -279,7 +279,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
tmpsize *= 2;
|
tmpsize *= 2;
|
||||||
tmp = xrealloc(tmp, tmpsize);
|
tmp = xrealloc(tmp, tmpsize);
|
||||||
}
|
}
|
||||||
tmpused = strlcat(tmp, cp, tmpsize);
|
strlcat(tmp, cp, tmpsize);
|
||||||
tmpused = strlcat(tmp, " ", tmpsize);
|
tmpused = strlcat(tmp, " ", tmpsize);
|
||||||
free(cp);
|
free(cp);
|
||||||
|
|
||||||
|
@ -212,11 +212,9 @@ cmd_show_options_all(struct cmd *self, struct cmdq_item *item, int scope,
|
|||||||
|
|
||||||
if ((self->entry != &cmd_show_hooks_entry &&
|
if ((self->entry != &cmd_show_hooks_entry &&
|
||||||
!args_has(self->args, 'H') &&
|
!args_has(self->args, 'H') &&
|
||||||
oe != NULL &&
|
|
||||||
(oe->flags & OPTIONS_TABLE_IS_HOOK)) ||
|
(oe->flags & OPTIONS_TABLE_IS_HOOK)) ||
|
||||||
(self->entry == &cmd_show_hooks_entry &&
|
(self->entry == &cmd_show_hooks_entry &&
|
||||||
(oe == NULL ||
|
(~oe->flags & OPTIONS_TABLE_IS_HOOK)))
|
||||||
(~oe->flags & OPTIONS_TABLE_IS_HOOK))))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
o = options_get_only(oo, oe->name);
|
o = options_get_only(oo, oe->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user