mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 16:27:03 +00:00
add FORMAT_PANE|wp->id as the tag when wp!=NULL in format_create_defaults to pass in pane_pid into the data
This commit is contained in:
10
format.c
10
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 session *s, struct winlink *wl, struct window_pane *wp)
|
||||||
{
|
{
|
||||||
struct format_tree *ft;
|
struct format_tree *ft;
|
||||||
|
int tag;
|
||||||
|
|
||||||
|
if (wp == NULL)
|
||||||
|
tag = FORMAT_NONE;
|
||||||
|
else
|
||||||
|
tag = FORMAT_PANE|wp->id;
|
||||||
|
|
||||||
if (item != NULL)
|
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
|
else
|
||||||
ft = format_create(NULL, item, FORMAT_NONE, 0);
|
ft = format_create(NULL, item, tag, 0);
|
||||||
format_defaults(ft, c, s, wl, wp);
|
format_defaults(ft, c, s, wl, wp);
|
||||||
return (ft);
|
return (ft);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user