=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/layout.c,v retrieving revision 1.40 retrieving revision 1.41 diff -c -r1.40 -r1.41 *** src/usr.bin/tmux/layout.c 2019/04/17 14:37:48 1.40 --- src/usr.bin/tmux/layout.c 2019/04/17 14:43:49 1.41 *************** *** 1,4 **** ! /* $OpenBSD: layout.c,v 1.40 2019/04/17 14:37:48 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: layout.c,v 1.41 2019/04/17 14:43:49 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 479,485 **** * out proportionately - this should leave the layout fitting the new * window size. */ ! xchange = sx - w->sx; xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT); if (xchange < 0 && xchange < -xlimit) xchange = -xlimit; --- 479,485 ---- * out proportionately - this should leave the layout fitting the new * window size. */ ! xchange = sx - lc->sx; xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT); if (xchange < 0 && xchange < -xlimit) xchange = -xlimit; *************** *** 493,499 **** layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange); /* Adjust vertically in a similar fashion. */ ! ychange = sy - w->sy; ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM); if (ychange < 0 && ychange < -ylimit) ychange = -ylimit; --- 493,499 ---- layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange); /* Adjust vertically in a similar fashion. */ ! ychange = sy - lc->sy; ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM); if (ychange < 0 && ychange < -ylimit) ychange = -ylimit;