Highlight only search results

This commit is contained in:
Piotr Osiewicz 2023-07-10 22:51:04 +02:00
parent 6739c31594
commit 4f60679861
3 changed files with 49 additions and 6 deletions

View file

@ -1086,11 +1086,13 @@ impl EditorElement {
})
}
};
for (row, _) in &editor.background_highlights_in_range(
start_anchor..end_anchor,
&layout.position_map.snapshot,
&theme,
) {
for (row, _) in &editor
.background_highlights_in_range_for_key::<crate::items::BufferSearchHighlights>(
start_anchor..end_anchor,
&layout.position_map.snapshot,
&theme,
)
{
let start_display = row.start;
let end_display = row.end;