aboutsummaryrefslogtreecommitdiff
path: root/src/term
diff options
context:
space:
mode:
Diffstat (limited to 'src/term')
-rw-r--r--src/term/mod.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 2bf5f9c1..1cb37816 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1297,11 +1297,8 @@ impl ansi::Handler for Term {
let mut template = self.cursor.template;
template.c = 'E';
- for row in &mut self.grid.lines_mut() {
- for cell in row {
- cell.reset(&template);
- }
- }
+ self.grid.region_mut(..)
+ .each(|c| c.reset(&template));
}
#[inline]