aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-12 22:02:42 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-12 22:02:42 +0000
commit400529eea04350907b5e240d991f4d39108177c5 (patch)
treeea9a5328e78464aaf14c78cde1cad4f689a7abe1 /screen-write.c
parentba4a884d753ade5fd285ecedd7bca25c70023058 (diff)
parent938156d73b0cc0692c727ac9a94bf65b235cfe40 (diff)
downloadrtmux-400529eea04350907b5e240d991f4d39108177c5.tar.gz
rtmux-400529eea04350907b5e240d991f4d39108177c5.tar.bz2
rtmux-400529eea04350907b5e240d991f4d39108177c5.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c5
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