aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 2cc60e30..1b78c39c 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1825,7 +1825,8 @@ impl ansi::Handler for Term {
self.colors = self.original_colors;
self.color_modified = [false; color::COUNT];
self.cursor_style = None;
- self.grid.reset();
+ self.grid.clear_history();
+ self.grid.region_mut(..).each(|c| c.reset(&Cell::default()));
}
#[inline]