tmux: move block assigning to prefix a bit down to avoid a small leak

ok nicm
This commit is contained in:
tb
2026-03-09 14:37:26 +00:00
parent 881bec958e
commit 2efa762c2b

View File

@@ -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;