commit 13d77c40208cbae400c189b0dcd81e65f600c47b
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Thu Apr 9 20:37:47 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Thu Apr 9 20:37:47 2020 +0200

    Fix bug with empty lines in scrollback

diff --git a/scroll.c b/scroll.c
index efdb7db..51366f5 100644
--- 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

Reply via email to