mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
e783142528
When switching to function definitions in a new buffer the `AutoscrollStrategy::Focused` being emitted to scroll to the found location. If a large value `vertical_scroll_margin` (e.g.: 99) is set, this leads to an incorrectly calculated position and the new buffer opens in the wrong place. In `autoscroll_vertically()` there is a margin calculated to cap the value of `vertical_scroll_margin` for certain AutoscrollStrategies. This margin is being used in `AutoscrollStrategy::Fit` and `AutoscrollStrategy::Newest` but was probably forgotten for `AutoscrollStrategy::Focused`. - Might fix [#15101](https://github.com/zed-industries/zed/issues/15101) Release Notes: - N/A |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |