mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Update for master
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
|
||||
/// A parsed terminfo database entry.
|
||||
#[deriving(Show)]
|
||||
pub struct TermInfo {
|
||||
/// Names for the terminal
|
||||
pub names: Vec<StrBuf> ,
|
||||
@@ -86,7 +87,7 @@ fn new(out: T) -> Option<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;
|
||||
}
|
||||
|
||||
@@ -183,7 +184,7 @@ fn reset(&mut self) -> IoResult<()> {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user