summaryrefslogtreecommitdiffstats
path: root/layout-set.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-11-09 12:02:07 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-11-09 12:02:07 +0000
commit9f738dd2fe01b5b70c07280450eed32614c561c2 (patch)
tree11c5f120cdb062bd247f145d383151ac8730ad15 /layout-set.c
parent6c1c304fc3e2197922fa7659110c3e78c4fbce6f (diff)
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
Diffstat (limited to 'layout-set.c')
-rw-r--r--layout-set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout-set.c b/layout-set.c
index eb75233a..98ed9736 100644
--- a/layout-set.c
+++ b/layout-set.c
@@ -260,8 +260,8 @@ layout_set_main_h(struct window *w)
* If an other pane height was specified, honour it so long as it
* doesn't shrink the main height to less than the main-pane-height
*/
- if (otherheight > 1 && w->sx - otherheight > mainheight)
- mainheight = w->sx - otherheight;
+ if (otherheight > 1 && w->sy - otherheight > mainheight)
+ mainheight = w->sy - otherheight;
if (mainheight < PANE_MINIMUM + 1)
mainheight = PANE_MINIMUM + 1;