commit 4ed0bd4aa3382ec3b73693b4379cfa8cc91e0e7e
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Sun Apr 12 22:35:27 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Sun Apr 12 22:35:27 2020 +0200

    Simplify syntax

diff --git a/scroll.c b/scroll.c
index 7754634..bbfff7d 100644
--- 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);

Reply via email to