[hackers] [scroll] return carriage at the beginning of the history line || Jochen Sprickerhof

From: <git_AT_suckless.org>
Date: Mon, 4 May 2020 07:32:04 +0200 (CEST)

commit 8d689bf06aa5be544748dc6f332d835a23be616d
Author: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
AuthorDate: Mon May 4 07:28:50 2020 +0200
Commit: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
CommitDate: Mon May 4 07:28:50 2020 +0200

    return carriage at the beginning of the history line

diff --git a/scroll.c b/scroll.c
index b58f059..6cb192a 100644
--- a/scroll.c
+++ b/scroll.c
_AT_@ -582,6 +582,7 @@ main(int argc, char *argv[])
 
                                         memset(buf, 0, size);
                                         pos = 0;
+ buf[pos++] = '\r';
                                 }
                                 buf[pos++] = *c;
                                 if (pos == size) {
Received on Mon May 04 2020 - 07:32:04 CEST

This archive was generated by hypermail 2.3.0 : Mon May 04 2020 - 07:36:38 CEST