Fix last panic with `cat /dev/urandom`

This commit is contained in:
Joe Wilm 2017-01-09 23:09:11 -08:00
parent b99fda5214
commit 6656df1401
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}