Skip to content

Commit

Permalink
Update for master
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed May 16, 2014
1 parent 67aea1f commit c4cf6ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libterm/terminfo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use self::parm::{expand, Number, Variables};


/// A parsed terminfo database entry.
#[deriving(Show)]
pub struct TermInfo {
/// Names for the terminal
pub names: Vec<StrBuf> ,
Expand Down Expand Up @@ -86,7 +87,7 @@ impl<T: Writer> Terminal<T> for TerminfoTerminal<T> {
// msys terminal
return Some(TerminfoTerminal {out: out, ti: msys_terminfo(), num_colors: 8});
}
debug!("error finding terminfo entry: {}", entry.unwrap_err());
debug!("error finding terminfo entry: {}", entry.err().unwrap());
return None;
}

Expand Down Expand Up @@ -183,7 +184,7 @@ impl<T: Writer> Terminal<T> for TerminfoTerminal<T> {
cap = self.ti.strings.find_equiv(&("op"));
}
}
let s = cap.map_or(Err(~"can't find terminfo capability `sgr0`"), |op| {
let s = cap.map_or(Err("can't find terminfo capability `sgr0`".to_owned()), |op| {
expand(op.as_slice(), [], &mut Variables::new())
});
if s.is_ok() {
Expand Down

0 comments on commit c4cf6ca

Please sign in to comment.