From 12cb31c57a432d1ee4cc4ed7715a0f49ea55f1d6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 8 Oct 2006 23:45:34 +0000 Subject: 100l: always repainting made it super-slow --- dblbuf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dblbuf.c') 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; idxslices[idx].y = -1; + if (b->repaint) { + for (idx=0; idxslices[idx].y = -1; + b->repaint = 0; + } /* Clean up cursor first.. */ idx = t->rows[b->curs_y]->idx; -- cgit v1.2.3