1
0
mirror of https://github.com/jht5945/finding.git synced 2025-12-27 21:20:05 +08:00

use clear_n_print_message

This commit is contained in:
2020-04-28 00:04:10 +08:00
parent 8008f27518
commit 2ce9540577

View File

@@ -123,8 +123,7 @@ fn match_lines(tag: &str, content: &str, options: &Options) -> bool {
if match_lines_vec.is_empty() {
false
} else {
print_lastline(EMPTY);
print_message(MessageType::OK, &format!("Find in {}:", tag));
clear_n_print_message(MessageType::OK, &format!("Find in {}:", tag));
for match_line in &match_lines_vec {
print!("{}: ", match_line.line_number + 1);
if options.ignore_case {