@@ -113,21 +113,21 @@ where
115 let mut new_underline_style = cell.underline_style;
115 let mut new_underline_style = cell.underline_style;
116− if !self.capabilities.has_extended_underlines {
116+ if self.capabilities.has_extended_underlines {
117− match new_underline_style {
118− UnderlineStyle::Reset | UnderlineStyle::Line => (),
119− _ => new_underline_style = UnderlineStyle::Line,
122 if cell.underline_color != underline_color {
117 if cell.underline_color != underline_color {
123 let color = CColor::from(cell.underline_color);
118 let color = CColor::from(cell.underline_color);
124 map_error(queue!(self.buffer, SetUnderlineColor(color)))?;
119 map_error(queue!(self.buffer, SetUnderlineColor(color)))?;
125 underline_color = cell.underline_color;
120 underline_color = cell.underline_color;
123+ match new_underline_style {
124+ UnderlineStyle::Reset | UnderlineStyle::Line => (),
125+ _ => new_underline_style = UnderlineStyle::Line,
129 if new_underline_style != underline_style {
129 if new_underline_style != underline_style {
130− let attr = CAttribute::from(cell.underline_style);
130+ let attr = CAttribute::from(new_underline_style);
131 map_error(queue!(self.buffer, SetAttribute(attr)))?;
131 map_error(queue!(self.buffer, SetAttribute(attr)))?;
132 underline_style = new_underline_style;
132 underline_style = new_underline_style;