Fix bug with empty lines in scrollback - scroll - scrollbackbuffer program for st
HTML git clone git://git.suckless.org/scroll
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 13d77c40208cbae400c189b0dcd81e65f600c47b
DIR parent 7281a8b5bc65be1b2eee7a936fe088f73f218cc5
HTML Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Thu, 9 Apr 2020 20:37:47 +0200
Fix bug with empty lines in scrollback
Diffstat:
M scroll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/scroll.c b/scroll.c
@@ -296,7 +296,7 @@ scrollup(int n)
bottom = TAILQ_NEXT(bottom, entries);
write(STDOUT_FILENO, scrollend->buf, scrollend->size);
}
- dprintf(STDOUT_FILENO, "\033[%d;%dH", ws.ws_row, ws.ws_col);
+ dprintf(STDOUT_FILENO, "\033[%d;0H", ws.ws_row);
}
void