Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Rename background_highlights_in_range_for_key to background_highlights_in_range_for
Piotr Osiewicze83afdc5abce
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 98fb887ffd0..28edd2a460f 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -7222,7 +7222,7 @@ impl Editor {}results}- pub fn background_highlights_in_range_for_key<T: 'static>(+ pub fn background_highlights_in_range_for<T: 'static>(&self,search_range: Range<Anchor>,display_snapshot: &DisplaySnapshot,diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex e79110c81e5..c07d18767ce 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -1087,7 +1087,7 @@ impl EditorElement {}};for (row, _) in &editor- .background_highlights_in_range_for_key::<crate::items::BufferSearchHighlights>(+ .background_highlights_in_range_for::<crate::items::BufferSearchHighlights>(start_anchor..end_anchor,&layout.position_map.snapshot,&theme,