mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
on resize, set the terminal cursor to max
This commit is contained in:
@ -102,6 +102,10 @@ pub fn resize(self: *Terminal, alloc: Allocator, cols: usize, rows: usize) !void
|
||||
.top = 0,
|
||||
.bottom = rows - 1,
|
||||
};
|
||||
|
||||
// Move our cursor
|
||||
self.cursor.x = @minimum(self.cursor.x, self.cols - 1);
|
||||
self.cursor.y = @minimum(self.cursor.y, self.rows - 1);
|
||||
}
|
||||
|
||||
/// Return the current string value of the terminal. Newlines are
|
||||
|
Reference in New Issue
Block a user