From cc4fd7725359d648bb474c92b4f8bb6e899614d9 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Sat, 28 Mar 2026 16:06:13 +0800 Subject: [PATCH 1/2] fix: return previous color state from setColorsEnabled setColorsEnabled incorrectly assigned wasEnabled from the new value instead of the previous colorsEnabled flag. --- src/util/terminal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/terminal.ts b/src/util/terminal.ts index c5a507bc9d..44c2cc1aff 100644 --- a/src/util/terminal.ts +++ b/src/util/terminal.ts @@ -32,7 +32,7 @@ export function isColorsEnabled(): bool { /** Sets whether terminal colors are enabled or not. */ export function setColorsEnabled(isEnabled: bool): bool { - let wasEnabled = isEnabled; + let wasEnabled = colorsEnabled; colorsEnabled = isEnabled; return wasEnabled; } From 9ca85ae52115e989b5d86ab418bc38f01dae9654 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Sat, 28 Mar 2026 16:06:58 +0800 Subject: [PATCH 2/2] chore: add Weixie Cui to NOTICE --- NOTICE | 1 + 1 file changed, 1 insertion(+) diff --git a/NOTICE b/NOTICE index 14d821345c..148bc0ca87 100644 --- a/NOTICE +++ b/NOTICE @@ -62,6 +62,7 @@ under the licensing terms detailed in LICENSE: * Kam Chehresa * Mopsgamer <79159094+Mopsgamer@users.noreply.github.com> * EDM115 +* Weixie Cui Portions of this software are derived from third-party works licensed under the following terms: