From e83afdc5abcea6cd3a78c6bd0a41a9c6c1de2360 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 11 Jul 2023 09:31:08 +0200 Subject: [PATCH] Rename background_highlights_in_range_for_key to background_highlights_in_range_for --- crates/editor/src/editor.rs | 2 +- crates/editor/src/element.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 98fb887ffd0c0785783bb8cd1f8ed59bc93dcb44..28edd2a460f6b17e41e152991fd7b67b2d48f60a 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( + pub fn background_highlights_in_range_for( &self, search_range: Range, display_snapshot: &DisplaySnapshot, diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index e79110c81e5e694b525f406e1cc44170b79964e2..c07d18767ce3ea5c565f5bcc3ed0fa4b2f336998 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::( + .background_highlights_in_range_for::( start_anchor..end_anchor, &layout.position_map.snapshot, &theme,