=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd.c,v retrieving revision 1.144 retrieving revision 1.145 diff -c -r1.144 -r1.145 *** src/usr.bin/tmux/cmd.c 2019/04/25 19:36:59 1.144 --- src/usr.bin/tmux/cmd.c 2019/05/03 16:51:29 1.145 *************** *** 1,4 **** ! /* $OpenBSD: cmd.c,v 1.144 2019/04/25 19:36:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd.c,v 1.145 2019/05/03 16:51:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 481,497 **** u_int x, y; if (last) { ! x = m->lx; ! y = m->ly; } else { x = m->x; y = m->y; } if (m->statusat == 0 && y > 0) y--; - else if (m->statusat > 0 && y >= (u_int)m->statusat) - y = m->statusat - 1; if (x < wp->xoff || x >= wp->xoff + wp->sx) return (-1); --- 481,496 ---- u_int x, y; if (last) { ! x = m->lx + m->ox; ! y = m->ly + m->oy; } else { x = m->x; y = m->y; } + log_debug("%s: x=%u, y=%u%s", __func__, x, y, last ? " (last)" : ""); if (m->statusat == 0 && y > 0) y--; if (x < wp->xoff || x >= wp->xoff + wp->sx) return (-1);