Skip to content

Commit ff958ac

Browse files
committed
---
yaml --- r: 62904 b: refs/heads/snap-stage3 c: 7281166 h: refs/heads/master v: v3
1 parent d0cb54a commit ff958ac

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,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: cf64324e19efd159fe0411f55a608f4f747e298d
4+
refs/heads/snap-stage3: 72811669619c593249de876003ee2205710a8fcf
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)