summaryrefslogtreecommitdiff
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index c209d4ad..92604b7a 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -579,7 +579,7 @@ impl ansi::Handler for Term {
#[inline]
fn linefeed(&mut self) {
debug_println!("linefeed");
- if self.cursor.line + 1 >= self.scroll_region.end {
+ if self.cursor.line + 1 == self.scroll_region.end {
self.scroll_up(Line(1));
} else {
self.cursor.line += 1;