Skip to content

Commit 7bc231b

Browse files
committed
---
yaml --- r: 60887 b: refs/heads/auto c: 7281166 h: refs/heads/master i: 60885: a9e0f9b 60883: 3ded1ec 60879: 5d155da v: v3
1 parent 2cedd29 commit 7bc231b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: cf64324e19efd159fe0411f55a608f4f747e298d
17+
refs/heads/auto: 72811669619c593249de876003ee2205710a8fcf
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libextra/term.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ pub impl Terminal {
7070

7171
let mut inf = ti.get();
7272
let cs = *inf.numbers.find_or_insert(~"colors", 0) >= 16 && inf.strings.find(&~"setaf").is_some()
73-
&& inf.strings.find(&~"setab").is_some();
73+
&& inf.strings.find_equiv(&("setab")).is_some();
7474

7575
return Ok(Terminal {out: out, ti: inf, color_supported: cs});
7676
}
7777
fn fg(&self, color: u8) {
78-
self.out.write(expand(*self.ti.strings.find(&~"setaf").unwrap(), [Number(color as int)], [], []));
78+
self.out.write(expand(*self.ti.strings.find_equiv(&("setaf")).unwrap(), [Number(color as int)], [], []));
7979
}
8080
fn bg(&self, color: u8) {
81-
self.out.write(expand(*self.ti.strings.find(&~"setab").unwrap(), [Number(color as int)], [], []));
81+
self.out.write(expand(*self.ti.strings.find_equiv(&("setab")).unwrap(), [Number(color as int)], [], []));
8282
}
8383
fn reset(&self) {
84-
self.out.write(expand(*self.ti.strings.find(&~"op").unwrap(), [], [], []));
84+
self.out.write(expand(*self.ti.strings.find_equiv(&("op")).unwrap(), [], [], []));
8585
}
8686
}

0 commit comments

Comments
 (0)