Skip to content

Commit

Permalink
render: reposition cursor when moving to new row
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rockorager committed Mar 8, 2024
1 parent 6dafeb7 commit 0192860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vaxis.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0192860

Please sign in to comment.