on main help sign in
perf(anim): eliminate string concatenation
commit301d42f7197944baf83c1d8dd90beb3328479006 authorChristian Rocha <christian@rocha.is> dateSat 7 Jun 2025, 08:56 (1 year ago) parent509d39e
1 file changed+1−1
internal/tui/components/anim/anim.go+1−1
internal/tui/components/anim/anim.go+1−1
@@ -258,7 +258,7 @@ func (a anim) View() tea.View {
258258 textStyle.Render(string(c.currentValue)),
259259 )
260260 }
261− return tea.NewView(b.String() + textStyle.Render(a.ellipsis.View()))
261+ b.WriteString(textStyle.Render(a.ellipsis.View()))
262262 }
263263
264264 return tea.NewView(b.String())