mirror of
https://github.com/jht5945/finding.git
synced 2025-12-29 06:00:04 +08:00
use clear_n_print_message
This commit is contained in:
@@ -123,8 +123,7 @@ fn match_lines(tag: &str, content: &str, options: &Options) -> bool {
|
|||||||
if match_lines_vec.is_empty() {
|
if match_lines_vec.is_empty() {
|
||||||
false
|
false
|
||||||
} else {
|
} else {
|
||||||
print_lastline(EMPTY);
|
clear_n_print_message(MessageType::OK, &format!("Find in {}:", tag));
|
||||||
print_message(MessageType::OK, &format!("Find in {}:", tag));
|
|
||||||
for match_line in &match_lines_vec {
|
for match_line in &match_lines_vec {
|
||||||
print!("{}: ", match_line.line_number + 1);
|
print!("{}: ", match_line.line_number + 1);
|
||||||
if options.ignore_case {
|
if options.ignore_case {
|
||||||
|
|||||||
Reference in New Issue
Block a user