vim: Fix panic due to overflow when scrolling (#16029)
When setting `"vertical_scroll_margin": 99` or other high values this can lead to a panic that crashes Zed. Release Notes: - vim: Fixed a possible panic that could happen when using a very high value for `vertical_scroll_margin` that exceeded the number of visible lines on the screen. Co-authored-by: Bennet <bennet@zed.dev>
T
Thorsten Ball committed
09c9ed4765e5bae505a9f480669a3b4d0416b922
Parent: 19d8422
Committed by GitHub <noreply@github.com>
on 8/9/2024, 1:15:27 PM