scroll

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

commit 75d5887e31271075919dc00ec76189f7e7246380
parent db05bd231885621108b77ae27375df121b78535c
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Tue, 14 Apr 2020 23:37:27 +0200

Fix typo

Diffstat:
Mscroll.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scroll.c b/scroll.c @@ -199,7 +199,7 @@ strelen(const char *buf, size_t size) /* detect alternative screen switching and clear screen */ bool -scipesc(char c) +skipesc(char c) { static enum {CHAR, BREK, ESC} state = CHAR; static char buf[BUFSIZ]; @@ -526,7 +526,7 @@ main(int argc, char *argv[]) for (char *c = input; n-- > 0; c++) { /* don't save alternative screen and */ /* clear screen esc sequences to scrollback */ - if (scipesc(*c)) + if (skipesc(*c)) continue; if (*c == '\n') {