Introduction
Introduction Statistics Contact Development Disclaimer Help
Simplify syntax - scroll - scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 4ed0bd4aa3382ec3b73693b4379cfa8cc91e0e7e
parent 44406af94e2af73849967ab2b68e8c66065c1ac8
Author: Jochen Sprickerhof <[email protected]>
Date: Sun, 12 Apr 2020 22:35:27 +0200
Simplify syntax
Diffstat:
M scroll.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/scroll.c b/scroll.c
@@ -270,9 +270,8 @@ redraw()
rows < ws.ws_row; rows++)
bottom = TAILQ_NEXT(bottom, entries);
- if (rows <= 0) {
+ if (rows <= 0)
return;
- }
/* clear screen */
dprintf(STDOUT_FILENO, "\033[2J");
@@ -307,9 +306,8 @@ scrollup(int n)
rows -= ws.ws_row;
- if (rows <= 0) {
+ if (rows <= 0)
return;
- }
/* move the text in terminal rows lines down */
dprintf(STDOUT_FILENO, "\033[%dT", rows);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.