Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix cursor position in scrollup - scroll - scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 2f696500f791925b6d5cdff3268e57f2fbc3a2a9
parent 37bc45d3a474b2a108440862533460ca5636193a
Author: Jochen Sprickerhof <[email protected]>
Date: Sat, 25 Apr 2020 23:32:04 +0200
Fix cursor position in scrollup
Diffstat:
M scroll.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);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.