When COLORTERM=truecolor is set, FORCE_COLOR=1 and FORCE_COLOR=2 were both returning level 3 instead of respecting the specified level. This happened because terminal detection (checking for COLORTERM) was running after FORCE_COLOR was parsed, overriding the explicit user preference. The fix adds an early return when FORCE_COLOR is explicitly set, preventing any terminal detection logic from overriding the user's choice. This ensures FORCE_COLOR takes priority over automatic terminal capability detection. Fixes #624 |
||
|---|---|---|
| .. | ||
| vendor | ||
| index.d.ts | ||
| index.js | ||
| index.test-d.ts | ||
| utilities.js | ||