From a10b869d82e4bec4a329b9dcdf4dbea0809ebf41 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 19 Oct 2023 01:26:53 +0300 Subject: [PATCH] [fmtutil/panel] Improve top line rendering --- fmtutil/panel/panel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmtutil/panel/panel.go b/fmtutil/panel/panel.go index ae0b7e8e..03b39c8d 100644 --- a/fmtutil/panel/panel.go +++ b/fmtutil/panel/panel.go @@ -133,7 +133,7 @@ func renderPanel(label, colorTag, title, message string, options Options) { if !options.Has(TOP_LINE) { fmtc.NewLine() } else { - lineSize := width - (strutil.Len(label+title) + 4) + lineSize := width - (strutil.LenVisual(label+title) + 4) if options.Has(LABEL_POWERLINE) { lineSize--