diff --git a/crates/terminal/src/terminal_element.rs b/crates/terminal/src/terminal_element.rs index fd6c3883d242ec1556f332abf6b25b5b68132843..828ae20ab68e099896353a391510773cd039ce91 100644 --- a/crates/terminal/src/terminal_element.rs +++ b/crates/terminal/src/terminal_element.rs @@ -618,12 +618,12 @@ impl Element for TerminalElement { // searches, highlights to a single range representations let mut relative_highlighted_ranges = Vec::new(); - for search_match in search_matches { - relative_highlighted_ranges.push((search_match, match_color)) - } if let Some(selection) = selection { relative_highlighted_ranges.push((selection.start..=selection.end, selection_color)); } + for search_match in search_matches { + relative_highlighted_ranges.push((search_match, match_color)) + } // then have that representation be converted to the appropriate highlight data structure