fix: correct positioning of search match highlight

This commit is contained in:
Henrik Friedrichsen
2021-02-06 00:48:26 +01:00
parent 14b7299bf3
commit f49e241e10

View File

@@ -315,7 +315,7 @@ impl<I: ListItem> View for ListView<I> {
for m in matches {
printer.with_color(matched_style, |printer| {
printer.print((m.0, 0), &left[m.0..m.1]);
printer.print((left[0..m.0].width(), 0), &left[m.0..m.1]);
});
}
}