diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-11-09 12:02:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-11-09 12:02:08 +0000 |
commit | f015a2836a270419fb4d032d4132a0ac05383269 (patch) | |
tree | 08491c64302ebac3474c022738277034938e22fa | |
parent | 5895838f436b5633878220a8ae891cedbe341675 (diff) |
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
-rw-r--r-- | usr.bin/tmux/layout-set.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c index 360acf2b10f..54299b26349 100644 --- a/usr.bin/tmux/layout-set.c +++ b/usr.bin/tmux/layout-set.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout-set.c,v 1.9 2011/03/07 23:55:16 nicm Exp $ */ +/* $OpenBSD: layout-set.c,v 1.10 2011/11/09 12:02:07 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |