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:
parent
ad4d704ab3
commit
1fe4edf449
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue