mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
code tweak to avoid crash
This commit is contained in:
@ -220,9 +220,6 @@ pub fn bell(self: *Terminal) void {
|
|||||||
// greater than the bottom-most row it is adjusted to the bottom-most
|
// greater than the bottom-most row it is adjusted to the bottom-most
|
||||||
// row.
|
// row.
|
||||||
pub fn setCursorPosition(self: *Terminal, row: usize, col: usize) !void {
|
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.x = @minimum(self.cols, col) -| 1;
|
||||||
self.cursor.y = @minimum(self.rows, row) -| 1;
|
self.cursor.y = @minimum(self.rows, row) -| 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user