Skip to content

Commit

Permalink
[fmtutil/panel] Improve top line rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 18, 2023
1 parent 24ae099 commit a10b869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmtutil/panel/panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit a10b869

Please sign in to comment.