Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.

pull/1/head
Nicholas Marriott 2011-11-09 12:02:07 +00:00
parent 6c1c304fc3
commit 9f738dd2fe
1 changed files with 2 additions and 2 deletions

View File

@ -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;