aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-31 16:19:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-31 16:19:24 -0400
commit7a2c99de74f5870e1dea5b59d049678ad0ef8e44 (patch)
treea172cd4a515a6d5780efd99c42f5ab78e0b8b352 /src
parent911a3988395e66ed5a2352f370c634cb02f07202 (diff)
Close out the type color when inspecting
Diffstat (limited to 'src')
-rw-r--r--src/stdlib/stdlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c
index fc79dd6b..fc94bc97 100644
--- a/src/stdlib/stdlib.c
+++ b/src/stdlib/stdlib.c
@@ -572,7 +572,7 @@ public void end_inspect(const void *expr, const TypeInfo_t *type)
Text_t expr_text = generic_as_text(expr, USE_COLOR, type);
Text_t type_name = generic_as_text(NULL, false, type);
for (int i = 0; i < 3*_inspect_depth; i++) fputc(' ', stdout);
- fprint(stdout, USE_COLOR ? "\x1b[33;1m=\x1b[0m " : " =", expr_text, USE_COLOR ? " \x1b[2m: \x1b[36m" : " : ", type_name);
+ fprint(stdout, USE_COLOR ? "\x1b[33;1m=\x1b[0m " : " =", expr_text, USE_COLOR ? " \x1b[2m: \x1b[36m" : " : ", type_name, USE_COLOR ? "\033[m" : "");
}
}