From 052945f9f83f95a1f3cbd5844fad0c4812ce2d2a Mon Sep 17 00:00:00 2001 From: realrasengan Date: Mon, 30 Mar 2026 21:28:20 -0700 Subject: [PATCH] fix fullRedraw skipping attributed spaces (nano title bar) --- framebuffer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framebuffer.go b/framebuffer.go index e1d43c5..1937a81 100644 --- a/framebuffer.go +++ b/framebuffer.go @@ -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 }