Skip to content

Commit c51f5f1

Browse files
committed
Fix color term detection in std::termivec
Pretty error messages to be restored
1 parent 18162d3 commit c51f5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib/termivec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn color_supported() -> bool {
5252
ret alt (generic_os::getenv("TERM")) {
5353
case (option::some(?env)) {
5454
for (str term in supported_terms) {
55-
if (str::eq(term, env)) { true }
55+
if (str::eq(term, env)) { ret true; }
5656
}
5757
false
5858
}

0 commit comments

Comments
 (0)