Revert "Revert "Ignore carriage return in history"" - scroll - scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 0e8130becf0f5d73cf16f262664248f5b1a813fc
parent 9e88f14d06e0e8be7bae7fcea10f5e57b88cf0b9
Author: Jochen Sprickerhof 
Date:   Mon,  4 May 2020 08:58:38 +0200

Revert "Revert "Ignore carriage return in history""

This reverts commit 1dfa7e759525944d50614caf96ce0acf8b52abeb.

Diffstat:
  M scroll.c                            |       2 ++

1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/scroll.c b/scroll.c
@@ -179,6 +179,8 @@ skipesc(char c)
 
         switch (state) {
         case CHAR:
+                if (c == '\r')
+                        return true;
                 if (c == '\033')
                         state = BREK;
                 break;