scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README

commit f36c0dcd49862f696eb07887313f2e6db331b71d
parent 1dbf2dce08892df710645ddbd2ce12759ec95078
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Thu, 30 Apr 2020 22:27:59 +0200

Ignore cursors movement sequences in history

Diffstat:
Mscroll.c | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/scroll.c b/scroll.c @@ -211,8 +211,17 @@ skipesc(char c) /* don't save cursor move or clear screen */ /* esc sequences to log */ - if (c == 'H' || c == 'J') + switch (c) { + case 'A': + case 'B': + case 'C': + case 'D': + case 'H': + case 'J': + case 'K': + case 'f': return true; + } } break; }