summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wintable/main.c2
1 files changed, 1 insertions, 1 deletions
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)