Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-tui/src/widgets/table.rs')
-rw-r--r--helix-tui/src/widgets/table.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs
index 5f4667b7..57f44883 100644
--- a/helix-tui/src/widgets/table.rs
+++ b/helix-tui/src/widgets/table.rs
@@ -37,14 +37,15 @@ pub struct Cell<'a> {
impl Cell<'_> {
/// Set the `Style` of this cell.
pub fn style(mut self, style: Style) -> Self {
- self.set_style(style);
+ self.style = style;
+ self.content.set_style(style);
self
}
/// Set the `Style` of this cell.
pub fn set_style(&mut self, style: Style) {
self.style = style;
- self.content.patch_style(style);
+ self.content.set_style(style);
}
}