mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-27 07:58:40 +03:00
Fix issue with cat /dev/urandom
This commit is contained in:
1 parent
2063f54455
commit
d2e8a0cd10
1 file changed
+2
-2
+2
-2
@@ -893,7 +893,7 @@ impl Term {
|
||||
// Clear `lines` lines at bottom of area
|
||||
{
|
||||
let end = self.scroll_region.end;
|
||||
let start = end - lines;
|
||||
let start = Line(end.0.saturating_sub(lines.0));
|
||||
self.grid.clear_region(start..end, |c| c.reset(&template));
|
||||
}
|
||||
|
||||
@@ -925,7 +925,7 @@ impl Term {
|
||||
|
||||
// Clear `lines` lines starting from origin to origin + lines
|
||||
{
|
||||
let end = origin + lines;
|
||||
let end = min(origin + lines, self.grid.num_lines());
|
||||
self.grid.clear_region(origin..end, |c| c.reset(&template));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user