From f8d052df6d97fcfec9d3cb317f1c16b7ba2a57fa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 22 Jun 2022 18:35:48 -0600 Subject: [PATCH] [ansi-print] Remove impossible condition --- util/ansi-print.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ansi-print.hh b/util/ansi-print.hh index 29eb1667c..0715f4926 100644 --- a/util/ansi-print.hh +++ b/util/ansi-print.hh @@ -179,7 +179,7 @@ struct biimage_t for (unsigned int i = 0; i < 8; i++) if (i != bg && (fg == 8 || freq[fg] < freq[i])) fg = i; - if (fg == bg || freq[fg] == 0) { + if (freq[fg] == 0) { fg = bg; unicolor = true; }