Fix bug with scrolling regions

Linefeeds were triggering scrolls in incorrect situations.

Resolves #9.
This commit is contained in:
Joe Wilm 2016-09-25 19:26:48 -07:00
parent f1499d1d45
commit 4a679d711f
1 changed files with 1 additions and 1 deletions

View File

@ -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;