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.

Fix horizontal scroll caused by diagnostic block width error (#19856)

Max Brunsfeld3e2f1d733c75
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index df13f748066..81ee6a01def 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -14188,7 +14188,7 @@ pub fn diagnostic_block_renderer(
.relative()
.size_full()
.pl(cx.gutter_dimensions.width)
- .w(cx.max_width + cx.gutter_dimensions.width)
+ .w(cx.max_width - cx.gutter_dimensions.full_width())
.child(
div()
.flex()