diff options
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 5ba192ff..4f56e7fc 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -917,8 +917,9 @@ impl Term { let range = Some(cols.start..line_end); if cols.end >= grid.num_cols() - 1 { - range.as_ref() - .map(|range| self.maybe_newline(grid, line, range.end)); + if let Some(ref range) = range { + self.maybe_newline(grid, line, range.end); + } } range |