render: reposition cursor when moving to new row

Explicitly reposition the cursor when moving to a new row to enable
terminals that support text selection to _not_ select the entire screen,
since the entire screen is wrapped.
This commit is contained in:
Tim Culverhouse 2024-03-07 20:39:37 -06:00
parent 6dafeb7820
commit 0192860c85

View file

@ -309,6 +309,7 @@ pub fn Vaxis(comptime T: type) type {
if (col >= self.screen.width) { if (col >= self.screen.width) {
row += 1; row += 1;
col = 0; col = 0;
reposition = true;
} }
// If cell is the same as our last frame, we don't need to do // If cell is the same as our last frame, we don't need to do
// anything // anything