From 0192860c85e7b971824262cd32701423df4031a0 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 7 Mar 2024 20:39:37 -0600 Subject: [PATCH] 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. --- src/vaxis.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vaxis.zig b/src/vaxis.zig index 8453f25..543f8ee 100644 --- a/src/vaxis.zig +++ b/src/vaxis.zig @@ -309,6 +309,7 @@ pub fn Vaxis(comptime T: type) type { if (col >= self.screen.width) { row += 1; col = 0; + reposition = true; } // If cell is the same as our last frame, we don't need to do // anything