mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 04:36:24 +00:00
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 |
||
---|---|---|
.. | ||
display_map | ||
git | ||
scroll | ||
signature_help | ||
test | ||
actions.rs | ||
blame_entry_tooltip.rs | ||
blink_manager.rs | ||
debounced_delay.rs | ||
display_map.rs | ||
editor.rs | ||
editor_settings.rs | ||
editor_settings_controls.rs | ||
editor_tests.rs | ||
element.rs | ||
git.rs | ||
highlight_matching_bracket.rs | ||
hover_links.rs | ||
hover_popover.rs | ||
hunk_diff.rs | ||
indent_guides.rs | ||
inlay_hint_cache.rs | ||
inline_completion_provider.rs | ||
items.rs | ||
linked_editing_ranges.rs | ||
mouse_context_menu.rs | ||
movement.rs | ||
persistence.rs | ||
rust_analyzer_ext.rs | ||
scroll.rs | ||
selections_collection.rs | ||
signature_help.rs | ||
tasks.rs | ||
test.rs |