Fix cursor position in scrollup - scroll - scrollbackbuffer program for st
 (HTM) git clone git://git.suckless.org/scroll
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2f696500f791925b6d5cdff3268e57f2fbc3a2a9
 (DIR) parent 37bc45d3a474b2a108440862533460ca5636193a
 (HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
       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(-)
       ---
 (DIR) 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);