My previous two attempts at fixing the "scrolling region" problem were wrong. Instead of using cur_offset to determine if we should scroll, calculate based on the current row. This is how Linux does it, and it seems to work.
My previous two attempts at fixing the "scrolling region" problem were wrong.
Instead of using cur_offset to determine if we should scroll, calculate based
on the current row. This is how Linux does it, and it seems to work.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars