From 2103a14c169cf262d8043f8bd824c783f0e2fe2b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 18 Nov 2014 12:51:00 -0500 Subject: [PATCH] Elaborated some comments. --- wintable/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wintable/main.c b/wintable/main.c index 2a2107b..d69d3cd 100644 --- a/wintable/main.c +++ b/wintable/main.c @@ -439,7 +439,7 @@ static void finishSelect(struct table *t, intptr_t prev) t->selected = 0; if (t->selected >= t->count) t->selected = t->count - 1; - // always redraw the old row, even if it matches the new row (since the focused column may have changed) + // always redraw the old row to avoid artifacts when scrolling, even if it matches the new row (since the focused column may have changed) redrawRow(t, prev); // if we need to scroll, the scrolling will force a redraw, so we don't have to worry about doing so ourselves if (t->selected < t->firstVisible)