summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-01 15:27:39 -0500
committercitrons <citrons@mondecitronne.com>2025-06-01 15:27:39 -0500
commit4aea639772ce02d3f3f67b1830c4fa363c980a02 (patch)
tree12c152c7bc57d0d9134ac9c5e40dc0a1f3d99783
parentf22f12b4fc1c9aa733cf68000afb425a87dcc222 (diff)
fix terminal style issue
-rw-r--r--tui/draw.go7
1 files 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)
}