diff options
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 37d444ba..a068f553 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1405,7 +1405,7 @@ impl ansi::Handler for Term { #[inline] fn linefeed(&mut self) { trace!("linefeed"); - if (self.cursor.point.line + 1) >= self.scroll_region.end { + if (self.cursor.point.line + 1) == self.scroll_region.end { self.scroll_up(Line(1)); } else { self.cursor.point.line += 1; |