From c3794d4303eb2988851b369295190d20b2f4182f Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 10 Nov 2011 21:41:37 +0000 Subject: Sync OpenBSD patchset 978: Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen. --- layout-set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layout-set.c') diff --git a/layout-set.c b/layout-set.c index 7fcc3956..646528ba 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; -- cgit v1.2.3