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
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 2m10s
This commit is contained in:
@@ -89,7 +89,7 @@ pub fn Direct(comptime fullscreen: bool) type {
|
|||||||
remaining_cols = size.cols;
|
remaining_cols = size.cols;
|
||||||
idx = result.idx + 1; // skip over newline
|
idx = result.idx + 1; // skip over newline
|
||||||
} else {
|
} else {
|
||||||
remaining_cols -= @truncate(cell_len - idx);
|
remaining_cols -= @truncate(cell_len -| idx);
|
||||||
idx = 0;
|
idx = 0;
|
||||||
break; // go to next cell
|
break; // go to next cell
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user