Fixed selection scrolling.

This commit is contained in:
Pietro Gagliardi 2014-12-14 18:06:08 -05:00
parent e246a9bd5f
commit f458700579
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ static void doselect(struct table *t, intptr_t row, intptr_t column)
if (width > clientWidth) // TODO >= ? if (width > clientWidth) // TODO >= ?
hscrollto(t, xpos); hscrollto(t, xpos);
else else
// TODO this formula is wrong // TODO don't use t->hpagesize here? depends if other code uses it
hscrollby(t, clientWidth - width); hscrollto(t, (xpos + width) - t->hpagesize);
} }
// now redraw the old and new /rows/ // now redraw the old and new /rows/