chiark / gitweb /
Fix panic when going to Read Mentions.
authorSimon Tatham <anakin@pobox.com>
Sun, 31 Dec 2023 15:11:07 +0000 (15:11 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 31 Dec 2023 15:11:07 +0000 (15:11 +0000)
commit38f3474b4d2884fde08b9e3dd6d271569462b308
tree41527855bf516411753d64210ac1c2224fab876a
parentae98a45b4b01682ea35b46433a75c6fc20a13475
Fix panic when going to Read Mentions.

My rewrite of the ensure_enough_rendered loop introduced a further bug
in which we counted the number of visible lines of the bottom item
_plus_ its full height. Should have been _instead of_ its full height.
So we didn't get right to the top of the screen.
src/file.rs