=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen-write.c,v retrieving revision 1.146 retrieving revision 1.147 diff -c -r1.146 -r1.147 *** src/usr.bin/tmux/screen-write.c 2019/03/12 18:30:08 1.146 --- src/usr.bin/tmux/screen-write.c 2019/03/12 20:02:47 1.147 *************** *** 1,4 **** ! /* $OpenBSD: screen-write.c,v 1.146 2019/03/12 18:30:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen-write.c,v 1.147 2019/03/12 20:02:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1034,1044 **** /* Move cursor to px,py. */ void ! screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py) { struct screen *s = ctx->s; ! if (py != -1 && (s->mode & MODE_ORIGIN)) { if ((u_int)py > s->rlower - s->rupper) py = s->rlower; else --- 1034,1045 ---- /* Move cursor to px,py. */ void ! screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py, ! int origin) { struct screen *s = ctx->s; ! if (origin && py != -1 && (s->mode & MODE_ORIGIN)) { if ((u_int)py > s->rlower - s->rupper) py = s->rlower; else