Skip to content

Commit fcf3140

Browse files
committed
---
yaml --- r: 63322 b: refs/heads/snap-stage3 c: 38e0574 h: refs/heads/master v: v3
1 parent e73fcd0 commit fcf3140

File tree

4 files changed

+100
-322
lines changed

4 files changed

+100
-322
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: da4e614742ea67677ed122985c1730590748d788
4+
refs/heads/snap-stage3: 38e05747b5cf75671b7fb7c634eba8fe56f9eb39
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use core::os;
2020
use terminfo::*;
2121
use terminfo::searcher::open;
2222
use terminfo::parser::compiled::parse;
23-
use terminfo::parm::{expand, Number, Variables};
23+
use terminfo::parm::{expand, Number};
2424

2525
// FIXME (#2807): Windows support.
2626

@@ -84,7 +84,7 @@ impl Terminal {
8484
pub fn fg(&self, color: u8) {
8585
if self.color_supported {
8686
let s = expand(*self.ti.strings.find_equiv(&("setaf")).unwrap(),
87-
[Number(color as int)], &mut Variables::new());
87+
[Number(color as int)], [], []);
8888
if s.is_ok() {
8989
self.out.write(s.get());
9090
} else {
@@ -95,7 +95,7 @@ impl Terminal {
9595
pub fn bg(&self, color: u8) {
9696
if self.color_supported {
9797
let s = expand(*self.ti.strings.find_equiv(&("setab")).unwrap(),
98-
[Number(color as int)], &mut Variables::new());
98+
[Number(color as int)], [], []);
9999
if s.is_ok() {
100100
self.out.write(s.get());
101101
} else {
@@ -105,8 +105,7 @@ impl Terminal {
105105
}
106106
pub fn reset(&self) {
107107
if self.color_supported {
108-
let mut vars = Variables::new();
109-
let s = expand(*self.ti.strings.find_equiv(&("op")).unwrap(), [], &mut vars);
108+
let s = expand(*self.ti.strings.find_equiv(&("op")).unwrap(), [], [], []);
110109
if s.is_ok() {
111110
self.out.write(s.get());
112111
} else {

0 commit comments

Comments
 (0)