From afccbf77711d063649e041e16bc61117c08446ed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Aug 2025 02:00:28 -0400 Subject: Minor bugfix for coloring of multi-line doctests --- src/stdlib/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib') diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 9238a4cf..b215ac3b 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -457,7 +457,7 @@ void start_inspect(const char *filename, int64_t start, int64_t end) { line += strcspn(line, "\r\n")) { line += strspn(line, "\r\n"); if ((int64_t)strspn(line, " \t") >= indent_len) line += indent_len; - print(repeated_char(' ', 3 * _inspect_depth), USE_COLOR ? "\x1b[33m.. " : ".. ", + print(repeated_char(' ', 3 * _inspect_depth), USE_COLOR ? "\x1b[33m..\033[m " : ".. ", string_slice(line, strcspn(line, "\r\n"))); } } -- cgit v1.2.3