aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-01-31 12:01:43 +0000
committerTiago Cunha <tcunha@gmx.com>2012-01-31 12:01:43 +0000
commit2ee0d851d92c00c13998c112618feb84df323ad2 (patch)
tree926ca8c1888921a00edc20a78f954fa60117e1f2 /format.c
parentc08a532440a5aeeed58ce10b8e4ac9a409555ea7 (diff)
downloadrtmux-2ee0d851d92c00c13998c112618feb84df323ad2.tar.gz
rtmux-2ee0d851d92c00c13998c112618feb84df323ad2.tar.bz2
rtmux-2ee0d851d92c00c13998c112618feb84df323ad2.zip
Sync OpenBSD patchset 1017:
Give each window a unique id, like panes but prefixed with @. Based on work from George Nachman.
Diffstat (limited to 'format.c')
-rw-r--r--format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/format.c b/format.c
index 713c9528..af675ce5 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);