From ac23a47a5f8087784fd53ac6b89eb852ec38d87b Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Jun 2026 08:33:07 +0100 Subject: [PATCH] Use correct branch for if. --- cmd-invoke.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd-invoke.c b/cmd-invoke.c index be2af8f3d..dfb0f68be 100644 --- a/cmd-invoke.c +++ b/cmd-invoke.c @@ -288,6 +288,7 @@ cmd_invoke_if(struct cmdq_item *item, struct cmd_invoke_state *is, if (cmd_invoke_is_true(item, is, next, &r) != 0) return (-1); if (r) { + next = cmd_parse_node_next(next); cmd_invoke_push_branch(is, child, next); return (0); }