Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Make editor autoscroll put cursor to the left of scrollbar not under (#23586)
Michael Sloan40c18be5416c
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex dac1e6d043c..63cc1a254d4 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -6456,7 +6456,7 @@ impl Element for EditorElement {let autoscrolled = if autoscroll_horizontally {editor.autoscroll_horizontally(start_row,- text_hitbox.size.width,+ editor_width - (letter_size.width / 2.0),scroll_width,em_width,&line_layouts,@@ -6541,7 +6541,7 @@ impl Element for EditorElement {let autoscrolled = if autoscroll_horizontally {editor.autoscroll_horizontally(start_row,- text_hitbox.size.width,+ editor_width - (letter_size.width / 2.0),scroll_width,em_width,&line_layouts,