Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator authored and sharkdp committed Oct 31, 2022
1 parent 17d849d commit cd8ec44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<Config>) -> 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);

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit cd8ec44

Please sign in to comment.