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

From: Ivan J. <parazyd_AT_dyne.org>
Date: Mon, 04 May 2020 10:47:35 +0200

On 4 May 2020 08:58:42 CEST, git_AT_suckless.org wrote:
>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;

Mind giving some reasoning to this?
Received on Mon May 04 2020 - 10:47:35 CEST

This archive was generated by hypermail 2.3.0 : Mon May 04 2020 - 10:48:38 CEST