diff options
author | Joe Wilm <joe@jwilm.com> | 2017-01-09 23:09:11 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-01-09 23:10:12 -0800 |
commit | 6656df1401a01aea67d1ffb3be032075c05d740f (patch) | |
tree | c95d7fd83b33636fd693d6040718538d8041646e /src | |
parent | b99fda521447e38b4ca800d20e93e3bd2250517f (diff) | |
download | alacritty-6656df1401a01aea67d1ffb3be032075c05d740f.tar.gz alacritty-6656df1401a01aea67d1ffb3be032075c05d740f.zip |
Fix last panic with `cat /dev/urandom`
Diffstat (limited to 'src')
-rw-r--r-- | src/term/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 4cb0c815..cc1715a9 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1002,7 +1002,7 @@ impl ansi::Handler for Term { if self.cursor.line == self.scroll_region.start { self.scroll_down(Line(1)); } else { - self.cursor.line -= 1; + self.cursor.line -= min(self.cursor.line, Line(1)); } } |