Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix bug that was causing `Editor` to notify on every mouse move
Antonio Scandurra23414d185c0e
diff --git a/crates/editor/src/display_map.rs b/crates/editor/src/display_map.rsindex 8703f1ba40a..4511ffe4078 100644--- a/crates/editor/src/display_map.rs+++ b/crates/editor/src/display_map.rs@@ -240,7 +240,7 @@ impl DisplayMap {}pub fn clear_highlights(&mut self, type_id: TypeId) -> bool {let mut cleared = self.text_highlights.remove(&Some(type_id)).is_some();- cleared |= self.inlay_highlights.remove(&type_id).is_none();+ cleared |= self.inlay_highlights.remove(&type_id).is_some();cleared}