fix fullRedraw skipping attributed spaces (nano title bar)

This commit is contained in:
realrasengan
2026-03-30 21:28:20 -07:00
parent aff8e0572a
commit 052945f9f8
+2 -2
View File
@@ -172,11 +172,11 @@ func (fb *Framebuffer) fullRedraw() []byte {
buf = append(buf, "\r\n"...)
}
rowOff := y * fb.W
// Track trailing spaces to avoid sending them.
// Track trailing default-attr spaces to avoid sending them.
lastNonSpace := -1
for x := fb.W - 1; x >= 0; x-- {
c := &fb.Cells[rowOff+x]
if c.Rune != ' ' || c.Rune == 0 || c.Attr != (Attr{}) {
if (c.Rune != ' ' && c.Rune != 0) || c.Attr != (Attr{}) {
lastNonSpace = x
break
}