Skip to content

Commit bc47e14

Browse files
Highlight the backtrace functions in red
1 parent dd45bda commit bc47e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ static void print_backtrace(int n, const backtrace* b, int last_spaces)
608608
}
609609
fputs("\033[0m", stderr);
610610
}
611-
fprintf(stderr, "\033[0;2m%s\033[0m %.*s\033[0;1m%.*s\033[0m%s\n",
611+
fprintf(stderr, "\033[0;2m%s\033[0m %.*s\033[31;1m%.*s\033[0m%s\n",
612612
pos,
613613
(int)(col - len - 1), ln,
614614
len, ln + col - len - 1,

0 commit comments

Comments
 (0)