aboutsummaryrefslogtreecommitdiffstats
path: root/src/row.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/row.rs')
-rw-r--r--src/row.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/row.rs b/src/row.rs
index 8fc0531..38b8eb3 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -15,7 +15,10 @@ impl Row {
}
pub fn clear(&mut self) {
- *self = Self::new(self.cells.len().try_into().unwrap());
+ for cell in &mut self.cells {
+ cell.clear();
+ }
+ self.wrapped = false;
}
pub fn cells_mut(