Fix last panic with `cat /dev/urandom`
This commit is contained in:
parent
b99fda5214
commit
6656df1401
|
@ -1002,7 +1002,7 @@ impl ansi::Handler for Term {
|
||||||
if self.cursor.line == self.scroll_region.start {
|
if self.cursor.line == self.scroll_region.start {
|
||||||
self.scroll_down(Line(1));
|
self.scroll_down(Line(1));
|
||||||
} else {
|
} else {
|
||||||
self.cursor.line -= 1;
|
self.cursor.line -= min(self.cursor.line, Line(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue