scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README

commit 2f696500f791925b6d5cdff3268e57f2fbc3a2a9
parent 37bc45d3a474b2a108440862533460ca5636193a
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Sat, 25 Apr 2020 23:32:04 +0200

Fix cursor position in scrollup

Diffstat:
Mscroll.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scroll.c b/scroll.c @@ -340,7 +340,7 @@ scrollup(int n) } /* move cursor from line n to the old bottom position */ if (y + n < ws.ws_row) { - dprintf(STDOUT_FILENO, "\033[%d;%dH", y + n, y); + dprintf(STDOUT_FILENO, "\033[%d;%dH", y + n, x); write(STDOUT_FILENO, "\033[?25h", 6); /* show cursor */ } else dprintf(STDOUT_FILENO, "\033[%d;0H", ws.ws_row);