Commit c2c8bdc6 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix overflow

parent 3574eaa7
......@@ -2,7 +2,7 @@
name = "ransid"
description = "Rust ANSI Driver"
repository = "https://github.com/jackpot51/ransid"
version = "0.3.4"
version = "0.3.5"
license-file = "LICENSE"
readme = "README.md"
keywords = ["redox", "ansi"]
......
......@@ -182,7 +182,7 @@ impl Console {
if self.y + 1 > h {
let rows = self.y + 1 - h;
self.scroll(rows, callback);
self.y -= rows;
self.y = self.y.checked_sub(rows).unwrap_or(0);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment