diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-11-10 21:41:37 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-11-10 21:41:37 +0000 |
commit | c3794d4303eb2988851b369295190d20b2f4182f (patch) | |
tree | 13fc6235fb481b4319b20940b2bbae9b2fb921b7 | |
parent | 4fbb2964388e1a1efa9c32d21a416925f2f0811c (diff) |
Sync OpenBSD patchset 978:
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
-rw-r--r-- | layout-set.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |