From 8c2005df09c1cc8863b9fffe3734be0eb1283f25 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Thu, 20 Mar 2025 20:39:27 -0300 Subject: [PATCH] add FORMAT_PANE|wp->id as the tag when wp!=NULL in format_create_defaults to pass in pane_pid into the data --- format.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/format.c b/format.c index 221550a1..6a3d0775 100644 --- a/format.c +++ b/format.c @@ -5084,11 +5084,17 @@ format_create_defaults(struct cmdq_item *item, struct client *c, struct session *s, struct winlink *wl, struct window_pane *wp) { struct format_tree *ft; + int tag; + + if (wp == NULL) + tag = FORMAT_NONE; + else + tag = FORMAT_PANE|wp->id; if (item != NULL) - ft = format_create(cmdq_get_client(item), item, FORMAT_NONE, 0); + ft = format_create(cmdq_get_client(item), item, tag, 0); else - ft = format_create(NULL, item, FORMAT_NONE, 0); + ft = format_create(NULL, item, tag, 0); format_defaults(ft, c, s, wl, wp); return (ft); }