return carriage at the beginning of the history line - scroll - scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 8d689bf06aa5be544748dc6f332d835a23be616d
parent fa406caa11cb4319aab8922b90c0b969998027fc
Author: Jochen Sprickerhof 
Date:   Mon,  4 May 2020 07:28:50 +0200

return carriage at the beginning of the history line

Diffstat:
  M scroll.c                            |       1 +

1 file changed, 1 insertion(+), 0 deletions(-)
---
diff --git a/scroll.c b/scroll.c
@@ -582,6 +582,7 @@ main(int argc, char *argv[])
 
                                         memset(buf, 0, size);
                                         pos = 0;
+                                        buf[pos++] = '\r';
                                 }
                                 buf[pos++] = *c;
                                 if (pos == size) {