diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-11-09 12:02:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-11-09 12:02:07 +0000 |
commit | 9f738dd2fe01b5b70c07280450eed32614c561c2 (patch) | |
tree | 11c5f120cdb062bd247f145d383151ac8730ad15 | |
parent | 6c1c304fc3e2197922fa7659110c3e78c4fbce6f (diff) | |
download | rtmux-9f738dd2fe01b5b70c07280450eed32614c561c2.tar.gz rtmux-9f738dd2fe01b5b70c07280450eed32614c561c2.tar.bz2 rtmux-9f738dd2fe01b5b70c07280450eed32614c561c2.zip |
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 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; |