status.zig — Left and right sections can silently overlapstatus.zig — Left and right sections can silently overlapFile: src/status.zig:52–56
Severity: LOW
Status: ✅ FIXED — right section length capped to width - left_len to prevent overlap.
const left_len = @min(left.len, width);
@memcpy(line[0..left_len], left[0..left_len]);
const right_start = if (width > right_len) width - right_len else 0;
@memcpy(line[right_start..][0..right_len], right[right.len - right_len ..][0..right_len]);
When left_len + right_len > width, the right section overwrites the left. No clipping is done to prevent overlap. Produces visually incorrect output when both sections are long.