fix(textarea): use x/ansi to strip ansi sequences

This commit is contained in:
Ayman Bagabas
2024-05-23 15:01:44 -04:00
parent e84ce79497
commit 14a62710fc
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"unicode"
"github.com/MakeNowJust/heredoc"
"github.com/acarl005/stripansi"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/x/ansi"
)
func TestVerticalScrolling(t *testing.T) {
@@ -1326,7 +1326,7 @@ func sendString(m Model, str string) Model {
}
func stripString(str string) string {
s := stripansi.Strip(str)
s := ansi.Strip(str)
ss := strings.Split(s, "\n")
var lines []string