* Ivan J. <[email protected]> [2020-05-04 10:47]:
On 4 May 2020 08:58:42 CEST, [email protected] wrote:
commit 0e8130becf0f5d73cf16f262664248f5b1a813fc
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Mon May 4 08:58:38 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
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
@@ -179,6 +179,8 @@ skipesc(char c)

        switch (state) {
        case CHAR:
+               if (c == '\r')
+                       return true;
                if (c == '\033')
                        state = BREK;
                break;

Mind giving some reasoning to this?

Because we can't handle \r (and not sure if we want to).

Attachment: signature.asc
Description: PGP signature

Reply via email to