Skip to content

Commit

Permalink
if --color always, always print with color, even when --vimgrep is given
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Sep 28, 2016
1 parent 3550f2e commit 49fac8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ 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
Expand Down

0 comments on commit 49fac8d

Please sign in to comment.