Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Keep scrollbar up if there are selections
Piotr Osiewicza6d713eb3d47
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex e96f1efe926..bd662c039be 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -2149,6 +2149,9 @@ impl Element<Editor> for EditorElement {ShowScrollbar::Auto => {// Git(is_singleton && scrollbar_settings.git_diff && snapshot.buffer_snapshot.has_git_diffs())+ ||+ // Selections+ (is_singleton && scrollbar_settings.selections && !highlighted_ranges.is_empty())// Scrollmanager|| editor.scroll_manager.scrollbars_visible()}