When getting an ecolor, we should check that stdout is a tty
This commit is contained in:
parent
33aa2a0745
commit
6b0c28039d
@ -290,7 +290,7 @@ hidden_def(ecolor)
|
||||
|
||||
const char *ecolor (einfo_color_t color)
|
||||
{
|
||||
return (_ecolor (NULL, color));
|
||||
return (_ecolor (stdout, color));
|
||||
}
|
||||
|
||||
#define EINFOVN(_file, _color) \
|
||||
|
Loading…
Reference in New Issue
Block a user