summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authornicm <nicm>2019-03-12 18:30:08 +0000
committernicm <nicm>2019-03-12 18:30:08 +0000
commit2796ae81d0be04df161cffdf447c2d0e5ec895e2 (patch)
tree8290bc3f82b974e0bf2c8c9948388b1763826383 /input.c
parentf3f534a3a0361ed11d0fc455f9a42ba82e6aa471 (diff)
Fix HPA in origin mode.
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 0503c52a..dcfb6772 100644
--- a/input.c
+++ b/input.c
@@ -1447,7 +1447,7 @@ input_csi_dispatch(struct input_ctx *ictx)
case INPUT_CSI_HPA:
n = input_get(ictx, 0, 1, 1);
if (n != -1)
- screen_write_cursormove(sctx, n - 1, s->cy);
+ screen_write_cursormove(sctx, n - 1, -1);
break;
case INPUT_CSI_ICH:
n = input_get(ictx, 0, 1, 1);
@@ -1519,7 +1519,7 @@ input_csi_dispatch(struct input_ctx *ictx)
case INPUT_CSI_VPA:
n = input_get(ictx, 0, 1, 1);
if (n != -1)
- screen_write_cursormove(sctx, s->cx, n - 1);
+ screen_write_cursormove(sctx, -1, n - 1);
break;
case INPUT_CSI_DECSCUSR:
n = input_get(ictx, 0, 0, 0);