From cd8ec44abf0a61d3686609ad6e705b3f5efa8181 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 31 Oct 2022 16:36:26 -0400 Subject: [PATCH] Address review comments --- src/walk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/walk.rs b/src/walk.rs index 34deb96..243eef9 100644 --- a/src/walk.rs +++ b/src/walk.rs @@ -132,7 +132,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc, config: Arc) -> R // Flag specifically for quitting due to ^C let interrupt_flag = Arc::new(AtomicBool::new(false)); - if config.ls_colors.is_some() && config.command.is_none() { + if config.ls_colors.is_some() && config.is_printing() { let quit_flag = Arc::clone(&quit_flag); let interrupt_flag = Arc::clone(&interrupt_flag); @@ -537,7 +537,7 @@ fn spawn_senders( if config.is_printing() { if let Some(ls_colors) = &config.ls_colors { - // Try to compute colors in parallel + // Compute colors in parallel entry.style(ls_colors); } }