summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-04 12:20:38 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 16:02:18 -0500
commitde2aaa40b135e8bbe944bbc5fca45105c9c7048a (patch)
tree0e39299ffe4986ece7e2bc0ad3234014d7218724
parent3fba023a229a5aa69658c6e34bdf95e8fe6c258f (diff)
fix bandwidth issue
-rw-r--r--tui/draw.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/tui/draw.go b/tui/draw.go
index d30e0eb..2aa3376 100644
--- a/tui/draw.go
+++ b/tui/draw.go
@@ -176,7 +176,11 @@ func Present() error {
if p.x + cw > s.Width {
c.c = " "
}
- if c != scr.back[p] || scr.prevSize != s {
+ b := scr.back[p]
+ if b.c == "" {
+ b.c = " "
+ }
+ if c != b || scr.prevSize != s {
switch {
case reset:
writeCursor(p.x, p.y)