From 38118a9a4789329be922ac57d457e2c0b12a1b94 Mon Sep 17 00:00:00 2001 From: verse91 Date: Sun, 19 Apr 2026 11:13:40 +0700 Subject: [PATCH] fix(overlay): extra left border --- integration/overlay.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/overlay.go b/integration/overlay.go index 0b230a7..7a407dc 100644 --- a/integration/overlay.go +++ b/integration/overlay.go @@ -103,7 +103,7 @@ func (o *Overlay) Render() string { // top border with scroll indicator s.WriteString("\0338") fmt.Fprintf(&s, "\033[%dB", 1) - s.WriteString("\033[K") + s.WriteString("\033[2K") scrollInfo := "" if len(o.Items) > windowSize { @@ -121,7 +121,7 @@ func (o *Overlay) Render() string { for i := start; i < end; i++ { s.WriteString("\0338") fmt.Fprintf(&s, "\033[%dB", (i-start)+2) - s.WriteString("\033[K") + s.WriteString("\033[2K") it := o.Items[i] rawIcon := fixedWidth(it.Icon, iconW) @@ -148,7 +148,7 @@ func (o *Overlay) Render() string { // Bottom border s.WriteString("\0338") fmt.Fprintf(&s, "\033[%dB", windowSize+2) - s.WriteString("\033[K") + s.WriteString("\033[2K") bottomBorder := "╰" + strings.Repeat("─", boxWidth) + "╯" s.WriteString(borderStyle.Render(bottomBorder))