1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-05-29 21:47:42 +02:00

Merge pull request #121 from lilydjwg/master

if --color always, always print with color, even when --vimgrep is given
This commit is contained in:
Andrew Gallant 2016-09-29 16:49:44 -04:00 committed by GitHub
commit cee2f09a6d

View File

@ -358,12 +358,14 @@ impl RawArgs {
self.flag_threads
};
let color =
if self.flag_vimgrep {
if self.flag_color == "always" {
true
} else if self.flag_vimgrep {
false
} else if self.flag_color == "auto" {
atty::on_stdout() || self.flag_pretty
} else {
self.flag_color == "always"
false
};
let mut with_filename = self.flag_with_filename;