drawLine “clear trailing spaces” is a dead no-opdrawLine “clear trailing spaces” is a dead no-opFile: 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.