Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update element.rs

Mikayla Makie87c3b6dd7ca
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index c1a489f48e9..780f8cd1d53 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -581,7 +581,7 @@ impl EditorElement {
ix as f32 * line_height - (scroll_top % line_height),
);
let centering_offset = vec2f(
- ((layout.gutter_padding + layout.gutter_margin - indicator.size().x()) / 2.),
+ (layout.gutter_padding + layout.gutter_margin - indicator.size().x()) / 2.,
(line_height - indicator.size().y()) / 2.,
);