Skip to content

Commit 393ce72

Browse files
fix(writer): do not use text.StringBuilder as a writer
1 parent 1b7df72 commit 393ce72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/terminal/writer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515

1616
func init() {
1717
runewidth.DefaultCondition.EastAsianWidth = false
18-
builder = text.NewBuilder()
1918
}
2019

2120
type style struct {
@@ -48,7 +47,7 @@ var (
4847
Plain bool
4948
Interactive bool
5049

51-
builder *text.StringBuilder
50+
builder strings.Builder
5251
length int
5352

5453
foregroundColor color.Ansi

0 commit comments

Comments
 (0)