mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-14 17:03:25 +00:00
fix(textarea): use x/ansi to strip ansi sequences
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user