szn

Bug 71 — drawLine “clear trailing spaces” is a dead no-op

71. drawLine “clear trailing spaces” is a dead no-op

File: src/tty/tty.zig:407–411 Severity: HIGH Status: ✅ FIXED — added clearToEOL() after cursor move to actually erase trailing characters. Unit test added.

// Clear trailing spaces
if (last_was_space) {
    try self.cursorMove(width - 1, ly);
}

The comment says “clear trailing spaces” but the code only moves the cursor to the last column — no clearToEOL or eraseChars sequence is emitted. When the next frame draws fewer characters on this line, old characters from the previous frame remain visible.