diff options
Diffstat (limited to 'alacritty_terminal/src/term')
-rw-r--r-- | alacritty_terminal/src/term/color.rs | 4 | ||||
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs index a67e2c6e..32c6af2b 100644 --- a/alacritty_terminal/src/term/color.rs +++ b/alacritty_terminal/src/term/color.rs @@ -115,7 +115,7 @@ impl<'de> Deserialize<'de> for Rgb { where E: serde::de::Error, { - Rgb::from_str(&value[..]).map_err(|_| { + Rgb::from_str(value).map_err(|_| { E::custom(format!( "failed to parse rgb color {}; expected hex color like #ff00ff", value @@ -219,7 +219,7 @@ impl<'de> Deserialize<'de> for CellRgb { _ => (), } - Rgb::from_str(&value[..]).map(CellRgb::Rgb).map_err(|_| { + Rgb::from_str(value).map(CellRgb::Rgb).map_err(|_| { E::custom(format!("failed to parse color {}; expected {}", value, EXPECTING)) }) } diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 4ece1b52..a898ecc4 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1573,7 +1573,7 @@ impl<T: EventListener> Handler for Term<T> { ansi::Mode::LineWrap => self.mode.insert(TermMode::LINE_WRAP), ansi::Mode::LineFeedNewLine => self.mode.insert(TermMode::LINE_FEED_NEW_LINE), ansi::Mode::Origin => self.mode.insert(TermMode::ORIGIN), - ansi::Mode::DECCOLM => self.deccolm(), + ansi::Mode::ColumnMode => self.deccolm(), ansi::Mode::Insert => self.mode.insert(TermMode::INSERT), ansi::Mode::BlinkingCursor => { let style = self.cursor_style.get_or_insert(self.default_cursor_style); @@ -1615,7 +1615,7 @@ impl<T: EventListener> Handler for Term<T> { ansi::Mode::LineWrap => self.mode.remove(TermMode::LINE_WRAP), ansi::Mode::LineFeedNewLine => self.mode.remove(TermMode::LINE_FEED_NEW_LINE), ansi::Mode::Origin => self.mode.remove(TermMode::ORIGIN), - ansi::Mode::DECCOLM => self.deccolm(), + ansi::Mode::ColumnMode => self.deccolm(), ansi::Mode::Insert => self.mode.remove(TermMode::INSERT), ansi::Mode::BlinkingCursor => { let style = self.cursor_style.get_or_insert(self.default_cursor_style); |