From 938156d73b0cc0692c727ac9a94bf65b235cfe40 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 12 Mar 2019 20:02:47 +0000 Subject: DECRC and DECSC apparently need to preserve origin mode as well, based on a fix from Marc Reisner. --- screen-write.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index c9cba2bd..9153ad27 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1034,11 +1034,12 @@ screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg) /* Move cursor to px,py. */ void -screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py) +screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py, + int origin) { struct screen *s = ctx->s; - if (py != -1 && (s->mode & MODE_ORIGIN)) { + if (origin && py != -1 && (s->mode & MODE_ORIGIN)) { if ((u_int)py > s->rlower - s->rupper) py = s->rlower; else -- cgit