return carriage at the beginning of the history line - 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 8d689bf06aa5be544748dc6f332d835a23be616d
(DIR) parent fa406caa11cb4319aab8922b90c0b969998027fc
(HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
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(-)
---
(DIR) 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) {