From 7a2c99de74f5870e1dea5b59d049678ad0ef8e44 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 31 Mar 2025 16:19:24 -0400 Subject: [PATCH] Close out the type color when inspecting --- src/stdlib/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index fc79dd6..fc94bc9 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" : ""); } }