aboutsummaryrefslogtreecommitdiff
path: root/src/term.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-08-19 18:06:33 -0700
committerJoe Wilm <joe@jwilm.com>2016-08-19 18:06:33 -0700
commit1fe4edf44963bd4a412bff04eb3e99c273a4e6ec (patch)
tree58d6d6f84d6b6ff7d315005025ef4708dc1aeeef /src/term.rs
parentad4d704ab37048116513a9b85f1ff9228fb3c7cf (diff)
downloadalacritty-1fe4edf44963bd4a412bff04eb3e99c273a4e6ec.tar.gz
alacritty-1fe4edf44963bd4a412bff04eb3e99c273a4e6ec.zip
Fix bug in input
In applications with a scroll region, newlines were not being properly added because the scroll region was ignored.
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 d31cf9ab..48ae151d 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -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;