when hilite_pet was enabled. After checking into it, the test was looking for the value: (FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_RED) which signifies a white color on win32 console I/O. The problem was that in some cases that was OR'd with something else such as FOREGROUND_INTENSITY. Fix it by checking only the bits that matter when turning on the attribute.
20 KiB
20 KiB