Fix typo - 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 75d5887e31271075919dc00ec76189f7e7246380
(DIR) parent db05bd231885621108b77ae27375df121b78535c
(HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Tue, 14 Apr 2020 23:37:27 +0200
Fix typo
Diffstat:
M scroll.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) 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') {