This commit is contained in:
Mikayla Maki
2022-08-31 18:27:25 -07:00
parent 3f11fd3b8b
commit a8b8003980
+3 -3
View File
@@ -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