diff options
author | 2019-03-12 18:30:08 +0000 | |
---|---|---|
committer | 2019-03-12 18:30:08 +0000 | |
commit | c15b234755bc9673a08da681c7f5c8fb7e6ffcff (patch) | |
tree | 9297c2f6468033ff710d204e7b3b095259ba83c1 /usr.bin/tmux/input.c | |
parent | Tidy up a lot of &ictx->ctx by using a local variable. (diff) | |
download | wireguard-openbsd-c15b234755bc9673a08da681c7f5c8fb7e6ffcff.tar.xz wireguard-openbsd-c15b234755bc9673a08da681c7f5c8fb7e6ffcff.zip |
Fix HPA in origin mode.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index d813edba9ce..6dba187a261 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.144 2019/03/12 18:26:57 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.145 2019/03/12 18:30:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |