code tweak to avoid crash

This commit is contained in:
Mitchell Hashimoto
2022-05-08 20:13:53 -07:00
parent 68aca98ba8
commit 4314ea86b3

View File

@ -220,9 +220,6 @@ pub fn bell(self: *Terminal) void {
// greater than the bottom-most row it is adjusted to the bottom-most
// row.
pub fn setCursorPosition(self: *Terminal, row: usize, col: usize) !void {
const tracy = trace(@src());
defer tracy.end();
self.cursor.x = @minimum(self.cols, col) -| 1;
self.cursor.y = @minimum(self.rows, row) -| 1;
}