From 0e59bc75fd90c09e3ea936fd58a5a13e69208253 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 30 Jan 2012 09:39:34 +0000 Subject: Give each window a unique id, like panes but prefixed with @. Based on work from George Nachman. --- format.c | 1 + 1 file changed, 1 insertion(+) (limited to 'format.c') diff --git a/format.c b/format.c index 3c8aea6e..c8502bdd 100644 --- a/format.c +++ b/format.c @@ -341,6 +341,7 @@ format_winlink(struct format_tree *ft, struct session *s, struct winlink *wl) layout = layout_dump(w); flags = window_printable_flags(s, wl); + format_add(ft, "window_id", "@%u", w->id); format_add(ft, "window_index", "%d", wl->idx); format_add(ft, "window_name", "%s", w->name); format_add(ft, "window_width", "%u", w->sx); -- cgit v1.2.3