From 2efa762c2b1c5dc464a5792519cd7fbde515e8dc Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 9 Mar 2026 14:37:26 +0000 Subject: [PATCH] tmux: move block assigning to prefix a bit down to avoid a small leak ok nicm --- cmd-list-keys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 6c0fec67..4f2c9dd3 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -195,10 +195,6 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item) } 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) { table = key_bindings_get_table(tablename, 0); 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) template = LIST_KEYS_TEMPLATE;