Skip to content

Commit 9d7b14d

Browse files
lilyballthestinger
authored andcommitted
---
yaml --- r: 63854 b: refs/heads/snap-stage3 c: ee7307e h: refs/heads/master v: v3
1 parent 0dec8aa commit 9d7b14d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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: a0c31ece9dba3665e0a44650ea492ae6f3e5604a
4+
refs/heads/snap-stage3: ee7307e6cb9e942fc1ef27109bfbc6fbf730ee3c
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ impl Terminal {
120120
pub fn reset(&self) {
121121
let mut vars = Variables::new();
122122
let s = do self.ti.strings.find_equiv(&("op"))
123-
.map_consume_default(Err(~"can't find op")) |&op| {
123+
.map_consume_default(Err(~"can't find terminfo capability `op`")) |&op| {
124124
expand(op, [], &mut vars)
125125
};
126126
if s.is_ok() {
127127
self.out.write(s.unwrap());
128-
} else {
128+
} else if self.num_colors > 0 {
129129
warn!("%s", s.unwrap_err());
130+
} else {
131+
debug!("%s", s.unwrap_err());
130132
}
131133
}
132134

0 commit comments

Comments
 (0)