diff options
-rw-r--r-- | src/term/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 7324d401..503d09ec 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1452,7 +1452,9 @@ impl ansi::Handler for Term { if (self.cursor.point.line + 1) == self.scroll_region.end { self.scroll_up(Line(1)); } else { - self.cursor.point.line += 1; + if (self.cursor.point.line + 1) < self.scroll_region.end { + self.cursor.point.line += 1; + } } } |