Skip to content

Commit 0694b7c

Browse files
fixed bug with always using colors and not checking for COLORS option flag
1 parent a3d1c13 commit 0694b7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

string_table.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ void string_table_print(string_table_t *string_table, options_t *option) {
199199
}
200200

201201
void set_console_color(int color, options_t *options) {
202+
if (!(options->flags & COLORS)) return;
202203
const char *s;
203204
switch (color) {
204205
case BLACK:

0 commit comments

Comments
 (0)