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.

editor: Qualify `RangeExt::overlaps` call to prevent phantom diagnostics (#18743)

Marshall Bowerscee019b1ea13
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 6fdcb22605d..62c2240828e 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -10792,7 +10792,7 @@ impl Editor {
.selections
.all::<Point>(cx)
.iter()
- .any(|selection| selection.range().overlaps(&intersection_range));
+ .any(|selection| RangeExt::overlaps(&selection.range(), &intersection_range));
self.unfold_ranges(std::iter::once(intersection_range), true, autoscroll, cx)
}