Skip to content

Commit 8095580

Browse files
committed
---
yaml --- r: 65485 b: refs/heads/master c: 7281166 h: refs/heads/master i: 65483: 9486463 v: v3
1 parent cac6f7d commit 8095580

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: cf64324e19efd159fe0411f55a608f4f747e298d
2+
refs/heads/master: 72811669619c593249de876003ee2205710a8fcf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/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)