summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-25 19:26:48 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-25 19:26:48 -0700
commit4a679d711fbb1969af8b957ee40877067527b8b8 (patch)
tree373dd2d61f581e78278359d8ad97e1dbdff5f441
parentf1499d1d4518674c6c3c5c859a7028709bdd741d (diff)
downloadalacritty-4a679d711fbb1969af8b957ee40877067527b8b8.tar.gz
alacritty-4a679d711fbb1969af8b957ee40877067527b8b8.zip
Fix bug with scrolling regions
Linefeeds were triggering scrolls in incorrect situations. Resolves #9.
-rw-r--r--src/term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index c209d4ad..92604b7a 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -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;