Merge branch 'master' into zig-0.15

This commit is contained in:
CJ van den Berg 2025-09-13 16:16:51 +02:00
commit f958aa3039
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 4 additions and 2 deletions

View file

@ -538,7 +538,7 @@ const Node = union(enum) {
const ctx = @as(*@This(), @ptrCast(@alignCast(ctx_)));
ctx.at = egc;
ctx.wcwidth = wcwidth;
if (ctx.col == 0 or egc[0] == '\n' or ctx.col < wcwidth)
if (wcwidth > 0 and (ctx.col == 0 or egc[0] == '\n' or ctx.col < wcwidth))
return Walker.stop;
ctx.col -= wcwidth;
return Walker.keep_walking;