Fix bug in input

In applications with a scroll region, newlines were not being properly
added because the scroll region was ignored.
This commit is contained in:
Joe Wilm 2016-08-19 18:06:33 -07:00
parent ad4d704ab3
commit 1fe4edf449
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ impl ansi::Handler for Term {
debug_print!("{}", c);
if self.cursor.col == self.grid.num_cols() {
debug_println!("wrapping");
if (self.cursor.line + 1) == self.grid.num_lines() {
if (self.cursor.line + 1) >= self.scroll_region.end {
self.linefeed();
} else {
self.cursor.line += 1;