diff options
author | nicm <nicm> | 2019-03-12 20:02:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-12 20:02:47 +0000 |
commit | 938156d73b0cc0692c727ac9a94bf65b235cfe40 (patch) | |
tree | cc73e2a98d40d99822e59e639542c973aa2aa77c /screen-write.c | |
parent | 2796ae81d0be04df161cffdf447c2d0e5ec895e2 (diff) | |
download | rtmux-938156d73b0cc0692c727ac9a94bf65b235cfe40.tar.gz rtmux-938156d73b0cc0692c727ac9a94bf65b235cfe40.tar.bz2 rtmux-938156d73b0cc0692c727ac9a94bf65b235cfe40.zip |
DECRC and DECSC apparently need to preserve origin mode as well, based
on a fix from Marc Reisner.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |