aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/src/buffer.rs
diff options
context:
space:
mode:
authorA-Walrus2022-09-04 08:28:55 +0000
committerPascal Kuthe2022-10-01 15:00:35 +0000
commit79a39c1063eca995bf75694743dc5eb3c905fa9c (patch)
treeb2ac4d7004be883740fcc3de1420fa17ed60d0fb /helix-tui/src/buffer.rs
parent3ad7d543ca17963f0839b1a6cd8abacdb5c60cf7 (diff)
Fix failing tests
Add underline field to doctests, and fix bugs
Diffstat (limited to 'helix-tui/src/buffer.rs')
-rw-r--r--helix-tui/src/buffer.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-tui/src/buffer.rs b/helix-tui/src/buffer.rs
index 14f3ecaf..3036608d 100644
--- a/helix-tui/src/buffer.rs
+++ b/helix-tui/src/buffer.rs
@@ -57,7 +57,7 @@ impl Cell {
Style::default()
.fg(self.fg)
.bg(self.bg)
- .underline(self.bg)
+ .underline(self.underline)
.add_modifier(self.modifier)
}
@@ -104,7 +104,8 @@ impl Default for Cell {
/// symbol: String::from("r"),
/// fg: Color::Red,
/// bg: Color::White,
-/// modifier: Modifier::empty()
+/// underline: Color::Reset,
+/// modifier: Modifier::empty(),
/// });
/// buf[(5, 0)].set_char('x');
/// assert_eq!(buf[(5, 0)].symbol, "x");