summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-25 10:11:45 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-25 10:11:45 +0000
commit6fee3e9e4b4c68c5d3d7f333c779ac865af7bf86 (patch)
tree9ea9b10bb53304355591a8c1889fd6e2a04519aa /format.c
parent748acdc77ca11a09e637324946a6a4f189defc8e (diff)
Rename session idx to session id throughout and add $ prefix to targets
to use it, extended from a diff 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 11f003c8..dc988278 100644
--- a/format.c
+++ b/format.c
@@ -280,6 +280,7 @@ format_session(struct format_tree *ft, struct session *s)
format_add(ft, "session_windows", "%u", winlink_count(&s->windows));
format_add(ft, "session_width", "%u", s->sx);
format_add(ft, "session_height", "%u", s->sy);
+ format_add(ft, "session_id", "%u", s->id);
sg = session_group_find(s);
format_add(ft, "session_grouped", "%d", sg != NULL);