mirror of
https://github.com/tmux/tmux.git
synced 2024-11-15 17:08:54 +00:00
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
This commit is contained in:
parent
6c1c304fc3
commit
9f738dd2fe
@ -260,8 +260,8 @@ layout_set_main_h(struct window *w)
|
|||||||
* If an other pane height was specified, honour it so long as it
|
* 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
|
* doesn't shrink the main height to less than the main-pane-height
|
||||||
*/
|
*/
|
||||||
if (otherheight > 1 && w->sx - otherheight > mainheight)
|
if (otherheight > 1 && w->sy - otherheight > mainheight)
|
||||||
mainheight = w->sx - otherheight;
|
mainheight = w->sy - otherheight;
|
||||||
if (mainheight < PANE_MINIMUM + 1)
|
if (mainheight < PANE_MINIMUM + 1)
|
||||||
mainheight = PANE_MINIMUM + 1;
|
mainheight = PANE_MINIMUM + 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user