diff options
author | 2011-11-09 12:02:07 +0000 | |
---|---|---|
committer | 2011-11-09 12:02:07 +0000 | |
commit | 0e6d1ac9cdb5251db29afe4e72533382d0bd7ca3 (patch) | |
tree | ba06d2f8ca7b1883188d625dc9f01eb2d11203f3 /usr.bin/tmux/layout-set.c | |
parent | sync (diff) | |
download | wireguard-openbsd-0e6d1ac9cdb5251db29afe4e72533382d0bd7ca3.tar.xz wireguard-openbsd-0e6d1ac9cdb5251db29afe4e72533382d0bd7ca3.zip |
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
Diffstat (limited to 'usr.bin/tmux/layout-set.c')
-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; |