From 7af4781134569f8e7f42f31fe29e909122f2d3fd Mon Sep 17 00:00:00 2001 From: DustInDark Date: Sun, 12 Jun 2022 22:50:59 +0900 Subject: [PATCH] fixed colored contributors option bug --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 13c766cd..ccb5d192 100644 --- a/src/main.rs +++ b/src/main.rs @@ -424,7 +424,9 @@ impl App { fn print_contributors(&self) { match fs::read_to_string("./contributors.txt") { - Ok(contents) => println!("{}", contents), + Ok(contents) => { + write_color_buffer(BufferWriter::stdout(ColorChoice::Always), None, &contents).ok(); + } Err(err) => { AlertMessage::alert(&format!("{}", err)).ok(); }