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;
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user