=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.123 retrieving revision 1.124 diff -c -r1.123 -r1.124 *** src/usr.bin/tmux/tty.c 2012/03/17 18:24:07 1.123 --- src/usr.bin/tmux/tty.c 2012/03/17 18:51:50 1.124 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.123 2012/03/17 18:24:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.124 2012/03/17 18:51:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1001,1007 **** * The pane doesn't fill the entire line, the linefeed * will already have happened, so just move the cursor. */ ! if (ctx->ocy != wp->yoff + wp->sy) tty_cursor_pane(tty, ctx, 0, ctx->ocy + 1); else tty_cursor_pane(tty, ctx, 0, ctx->ocy); --- 1001,1007 ---- * The pane doesn't fill the entire line, the linefeed * will already have happened, so just move the cursor. */ ! if (ctx->ocy != wp->yoff + wp->sy - 1) tty_cursor_pane(tty, ctx, 0, ctx->ocy + 1); else tty_cursor_pane(tty, ctx, 0, ctx->ocy);