Highlight only search results
This commit is contained in:
parent
6739c31594
commit
4f60679861
3 changed files with 49 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue