summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-02-02 00:03:45 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-02-02 00:03:45 +0000
commitd1ae2d9757138bd778a06ae8841df0cbeac08567 (patch)
tree3d16f7adfb0fe2263bacfc94a370ebc06aff209d /format.c
parent908a22e41ce9b33156ee2fa7a68bd585033cf3a3 (diff)
Get client_width and client_height the right way round, from Stephen
Thirlwall.
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.c b/format.c
index c8502bdd..b7bcd71c 100644
--- a/format.c
+++ b/format.c
@@ -303,8 +303,8 @@ format_client(struct format_tree *ft, struct client *c)
time_t t;
format_add(ft, "client_cwd", "%s", c->cwd);
- format_add(ft, "client_height", "%u", c->tty.sx);
- format_add(ft, "client_width", "%u", c->tty.sy);
+ format_add(ft, "client_height", "%u", c->tty.sy);
+ format_add(ft, "client_width", "%u", c->tty.sx);
format_add(ft, "client_tty", "%s", c->tty.path);
format_add(ft, "client_termname", "%s", c->tty.termname);