1
0
mirror of https://github.com/jht5945/finding.git synced 2025-12-27 13:20:03 +08:00
This commit is contained in:
2020-05-02 00:32:26 +08:00
parent 1cd44f5cbb
commit b42086b865

View File

@@ -118,8 +118,8 @@ fn match_lines(tag: &str, content: &str, options: &Options) -> bool {
println!("{}", match_line.line_string);
} else {
let parts = match_line.line_string.split(search_text).collect::<Vec<_>>();
for (j, part) in parts.iter().enumerate() {
if j != 0 {
for (i, part) in parts.iter().enumerate() {
if i != 0 {
print_color(Some(term::color::RED), true, search_text);
}
print!("{}", part);