summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-03-13 07:34:37 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-03-13 07:34:37 +0000
commita3aeaa865f12e018d08632aa5e7b510b1d7ecd1b (patch)
tree60f581d54ed5ab655076152d91444e90baa65944 /usr.bin/tmux
parentd780240ddcbac06f50ce29b5d2ffd5f0f8531870 (diff)
Do not use origin for VPA.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 43cceb043d0..66620b7691a 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.146 2019/03/12 20:02:47 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.147 2019/03/13 07:34:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1471,7 +1471,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, -1, 1);
+ screen_write_cursormove(sctx, n - 1, -1, 0);
break;
case INPUT_CSI_ICH:
n = input_get(ictx, 0, 1, 1);
@@ -1540,7 +1540,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, -1, n - 1, 1);
+ screen_write_cursormove(sctx, -1, n - 1, 0);
break;
case INPUT_CSI_DECSCUSR:
n = input_get(ictx, 0, 0, 0);