aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 02:00:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 02:00:28 -0400
commitafccbf77711d063649e041e16bc61117c08446ed (patch)
tree38f6d390f477ece843b9a286645f1f90304cfef1
parentd3751d4838b3e07618ae7c5c5888cb6d2b482fb8 (diff)
Minor bugfix for coloring of multi-line doctests
-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 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")));
}
}