??

Mikayla Maki created

Change summary

crates/terminal/src/terminal_element.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Detailed changes

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