=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/input.c,v retrieving revision 1.144 retrieving revision 1.145 diff -u -r1.144 -r1.145 --- src/usr.bin/tmux/input.c 2019/03/12 18:26:57 1.144 +++ src/usr.bin/tmux/input.c 2019/03/12 18:30:08 1.145 @@ -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 @@ -1447,7 +1447,7 @@ 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 @@ 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);