AmendHub

Download (as of this amendment):

jcs

/

textview

/

amendments

/

88

TVResize: Don't scroll past the end after resize


jcs made amendment 88 23 days ago
--- tv_layout.c Mon Nov 2 15:14:46 2026 +++ tv_layout.c Mon Nov 2 20:54:52 2026 @@ -97,6 +97,12 @@ TVResize(TVHandle tvh) tv->scrolled.bottom = tv->scrolled.top + tv->bounds.bottom; } + + if (tv->scrolled.bottom < tv->frame.bottom) { + tv->scrolled.bottom = tv->frame.bottom; + tv->scrolled.top = tv->scrolled.bottom - + tv->bounds.bottom; + } } }