[hackers] [scroll] Revert "Revert "Ignore carriage return in history"" || Jochen Sprickerhof

From: <git_AT_suckless.org>
Date: Mon, 4 May 2020 08:58:42 +0200 (CEST)

commit 0e8130becf0f5d73cf16f262664248f5b1a813fc
Author: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
AuthorDate: Mon May 4 08:58:38 2020 +0200
Commit: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
CommitDate: Mon May 4 08:58:38 2020 +0200

    Revert "Revert "Ignore carriage return in history""
    
    This reverts commit 1dfa7e759525944d50614caf96ce0acf8b52abeb.

diff --git a/scroll.c b/scroll.c
index c847ec1..6cb192a 100644
--- a/scroll.c
+++ b/scroll.c
_AT_@ -179,6 +179,8 @@ skipesc(char c)
 
         switch (state) {
         case CHAR:
+ if (c == '\r')
+ return true;
                 if (c == '\033')
                         state = BREK;
                 break;
Received on Mon May 04 2020 - 08:58:42 CEST

This archive was generated by hypermail 2.3.0 : Mon May 04 2020 - 09:00:43 CEST