summaryrefslogtreecommitdiff
path: root/wintable/main.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-11-18 12:51:00 -0500
committerPietro Gagliardi <[email protected]>2014-11-18 12:51:00 -0500
commit2103a14c169cf262d8043f8bd824c783f0e2fe2b (patch)
tree111c274b399e6c4ccfacaa745d00cbcf1f527335 /wintable/main.c
parenta77969754f541f3a48c8034cf1d3fec963d9cf18 (diff)
Elaborated some comments.
Diffstat (limited to 'wintable/main.c')
-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)