mirror of
https://github.com/tmux/tmux.git
synced 2026-03-09 17:30:16 +00:00
tmux: move block assigning to prefix a bit down to avoid a small leak
ok nicm
This commit is contained in:
@@ -195,10 +195,6 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
}
|
}
|
||||||
sort_crit.reversed = args_has(args, 'r');
|
sort_crit.reversed = args_has(args, 'r');
|
||||||
|
|
||||||
prefix = cmd_list_keys_get_prefix(args);
|
|
||||||
single = args_has(args, '1');
|
|
||||||
notes_only = args_has(args, 'N');
|
|
||||||
|
|
||||||
if ((tablename = args_get(args, 'T')) != NULL) {
|
if ((tablename = args_get(args, 'T')) != NULL) {
|
||||||
table = key_bindings_get_table(tablename, 0);
|
table = key_bindings_get_table(tablename, 0);
|
||||||
if (table == NULL) {
|
if (table == NULL) {
|
||||||
@@ -207,6 +203,10 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prefix = cmd_list_keys_get_prefix(args);
|
||||||
|
single = args_has(args, '1');
|
||||||
|
notes_only = args_has(args, 'N');
|
||||||
|
|
||||||
if ((template = args_get(args, 'F')) == NULL)
|
if ((template = args_get(args, 'F')) == NULL)
|
||||||
template = LIST_KEYS_TEMPLATE;
|
template = LIST_KEYS_TEMPLATE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user