aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorlostd <lostd@2f30.org>2014-10-07 11:23:44 +0000
committerlostd <>2014-10-07 11:23:44 +0000
commit4e818a3980ac2331d507773b51e7d0c8cfc899b5 (patch)
treed03a27291b842553dd206f9ce64673be1f374256 /noice.c
parent4fa2a994499211ed558c8e6fea1cf623b5feaad4 (diff)
downloadnoice-4e818a3980ac2331d507773b51e7d0c8cfc899b5.tar.gz
Include lines calculation in redraw
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index b241e20..062e26b 100644
--- a/noice.c
+++ b/noice.c
@@ -214,8 +214,11 @@ begin:
qsort(dents, n, sizeof(*dents), dentcmp);
for (;;) {
- int nlines = MIN(LINES - 4, n);
+ int nlines;
+
redraw:
+ nlines = MIN(LINES - 4, n);
+
/* Clean screen */
erase();
Un proyecto texto-plano.xyz