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 fa406caa11cb4319aab8922b90c0b969998027fc
(DIR) parent b539656abde01eaf06fb7c427aae35546c233a08
(HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sun, 3 May 2020 22:56:00 +0200
Ignore carriage return in history
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;