From 4aea639772ce02d3f3f67b1830c4fa363c980a02 Mon Sep 17 00:00:00 2001 From: citrons Date: Sun, 1 Jun 2025 15:27:39 -0500 Subject: fix terminal style issue --- tui/draw.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tui/draw.go b/tui/draw.go index 302f876..14f11fa 100644 --- a/tui/draw.go +++ b/tui/draw.go @@ -175,10 +175,11 @@ func Present() error { c.c = " " } if c != scr.back[p] || scr.prevSize != s { - if reset { + switch { + case reset: writeCursor(p.x, p.y) - } - if style != c.style { + fallthrough + case style != c.style: style = c.style writeStyle(style) } -- cgit v1.2.3