fixed -X output in combination with -c

This commit is contained in:
2022-10-11 09:11:46 +02:00
parent 6ae4a1b6d9
commit b9ed7d8cb7
5 changed files with 49 additions and 16 deletions

View File

@@ -29,6 +29,10 @@ func ProcessFiles(args []string) error {
if !isTerminal(os.Stdout) {
color.Disable()
} else {
level := color.TermColorLevel()
MatchFG = Colors[level]["fg"]
MatchBG = Colors[level]["bg"]
}
if err != nil {