summaryrefslogtreecommitdiff
path: root/dblbuf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-08 23:45:34 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-08 23:45:34 +0000
commit12cb31c57a432d1ee4cc4ed7715a0f49ea55f1d6 (patch)
treed1c590924caf5db8bc854c1a5f65abb3eb7a62f7 /dblbuf.c
parent916c3fb0040ff697e2abfe3791e89512499f8ccb (diff)
downloaduuterm-12cb31c57a432d1ee4cc4ed7715a0f49ea55f1d6.tar.gz
100l: always repainting made it super-slow
Diffstat (limited to 'dblbuf.c')
-rw-r--r--dblbuf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dblbuf.c b/dblbuf.c
index acd5105..c202e96 100644
--- a/dblbuf.c
+++ b/dblbuf.c
@@ -128,7 +128,10 @@ void uudisp_refresh(struct uudisp *d, struct uuterm *t)
int x1, x2, idx, y;
if (!b->active) return;
- if (b->repaint) for (idx=0; idx<h; idx++) b->slices[idx].y = -1;
+ if (b->repaint) {
+ for (idx=0; idx<h; idx++) b->slices[idx].y = -1;
+ b->repaint = 0;
+ }
/* Clean up cursor first.. */
idx = t->rows[b->curs_y]->idx;