summaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com>2016-10-01 21:49:29 +0200
committerPierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com>2016-10-01 21:49:29 +0200
commitc32d3af1ba4547c6b4071ab89ba7e4727e31aa9c (patch)
tree58391ab7fc781f528d287d0adb51ac5ae4b1650b /src/cell.rs
parentb1535a3c2df755222e583bb3233d347dcf7f77ce (diff)
Ignore ColorOutOfRange term error
Fixes #40
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cell.rs b/src/cell.rs
index 18185ab..7b57106 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -183,13 +183,13 @@ impl Cell {
pub fn print_term<T: Terminal+?Sized>(&self, out: &mut T, idx: usize, col_width: usize, skip_right_fill: bool) -> Result<(), Error> {
for a in &self.style {
match out.attr(a.clone()) {
- Ok(..) | Err(::term::Error::NotSupported) => (), // Ignore unsupported atrributes
+ Ok(..) | Err(::term::Error::NotSupported) | Err(::term::Error::ColorOutOfRange) => (), // Ignore unsupported atrributes
Err(e) => return Err(term_error_to_io_error(e))
};
}
try!(self.print(out, idx, col_width, skip_right_fill));
match out.reset() {
- Ok(..) | Err(::term::Error::NotSupported) => Ok(()),
+ Ok(..) | Err(::term::Error::NotSupported) | Err(::term::Error::ColorOutOfRange) => Ok(()),
Err(e) => Err(term_error_to_io_error(e))
}
}