fix(renderer): avoid inter overflow when rendering multiline strings
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 2m10s

This commit is contained in:
2024-12-03 17:43:06 +01:00
parent 05277a226a
commit bbb360e417

View File

@@ -89,7 +89,7 @@ pub fn Direct(comptime fullscreen: bool) type {
remaining_cols = size.cols;
idx = result.idx + 1; // skip over newline
} else {
remaining_cols -= @truncate(cell_len - idx);
remaining_cols -= @truncate(cell_len -| idx);
idx = 0;
break; // go to next cell
}