szn

Bug 185 — renderStatusBar doesn’t truncate long window names — writes past terminal width

185. renderStatusBar doesn’t truncate long window names — writes past terminal width

File: src/server/render.zig:498–499 Severity: MEDIUM Status: ✅ FIXED

The original renderStatusBar used a fixed-size stack buffer to format the status line. Long window names could overflow the buffer and write past the terminal width instead of being truncated. Rewrote renderStatusBar to write pieces directly to the output stream without a fixed-size buffer, and added truncation logic to cap visible output at self.sx. Unit test added (renderStatusBar truncates long name to fit terminal width — bug #185).