File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f7a1006a07b396ed239c08d3576597dad103e064
2
+ refs/heads/master: 043096ea0ab0369fd32210bb9c75bdc9d5820cb0
Original file line number Diff line number Diff line change @@ -48,10 +48,15 @@ fn reset(ioivec::buf_writer writer) {
48
48
}
49
49
50
50
fn color_supported ( ) -> bool {
51
- auto supported_terms = [ "xterm-color" , "xterm" , "screen-bce" ] ;
51
+ auto supported_terms = ~ [ "xterm-color" , "xterm" , "screen-bce" ] ;
52
52
ret alt ( generic_os:: getenv ( "TERM" ) ) {
53
- case ( option:: some ( ?env) ) { vec:: member ( env, supported_terms) }
54
- case ( option:: none) { false }
53
+ case ( option:: some ( ?env) ) {
54
+ for ( str term in supported_terms) {
55
+ if ( str:: eq ( term, env) ) { true }
56
+ }
57
+ false
58
+ }
59
+ case ( option:: none) { false }
55
60
} ;
56
61
}
57
62
You can’t perform that action at this time.
0 commit comments