scroll

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

commit 005d9575222afc98a663949417a0d02dc5020b54
parent 1d1fc9c987e43a47d70325d927d2ae81926576f6
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Sun,  5 Apr 2020 23:12:32 +0200

fix wrong continue in double stacked for loop

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

diff --git a/scroll.c b/scroll.c @@ -419,7 +419,7 @@ main(int argc, char *argv[]) scrollup(rules[i].lines); if (rules[i].event == SCROLL_DOWN) scrolldown(buf, pos, rules[i].lines); - continue; + goto out; } } noevent: @@ -429,6 +429,7 @@ main(int argc, char *argv[]) if (bottom != TAILQ_FIRST(&head)) jumpdown(buf, pos); } + out: if (pfd[1].revents & POLLIN) { ssize_t n = read(mfd, input, sizeof input);