Revert "Revert "Ignore carriage return in history"" - 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 0e8130becf0f5d73cf16f262664248f5b1a813fc
(DIR) parent 9e88f14d06e0e8be7bae7fcea10f5e57b88cf0b9
(HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
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(-)
---
(DIR) 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;