From 4192e123e6e09aa55878b4a000288ab6808be802 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 30 Mar 2024 12:17:39 -0400 Subject: Bugfix for color --- repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repl.c b/repl.c index fa00a7dc..38ed05e6 100644 --- a/repl.c +++ b/repl.c @@ -148,7 +148,7 @@ static double ast_to_num(env_t *env, ast_t *ast) static CORD obj_to_text(type_t *t, const void *obj, bool use_color) { -#define C(code, fmt) (use_color ? "\x1b[" code fmt "\x1b[m" : fmt) +#define C(code, fmt) (use_color ? "\x1b[" code "m" fmt "\x1b[m" : fmt) switch (t->tag) { case MemoryType: return ""; case BoolType: return *(bool*)obj ? C("35", "yes") : C("35", "no"); -- cgit v1.2.3