Skip to content

Commit

Permalink
fix: use ansi.GetParser
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Sep 13, 2024
1 parent 307a077 commit 1584bc0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
4 changes: 2 additions & 2 deletions cellbuf/buffer_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func writeFrame[
var link Hyperlink
origX := x

p := GetParser()
p := ansi.GetParser()
data = replaceAll(data, T("\r\n"), T("\n"))

var state byte
Expand Down Expand Up @@ -228,7 +228,7 @@ func writeFrame[
data = data[n:]
}

PutParser(p)
ansi.PutParser(p)

return
}
Expand Down
2 changes: 1 addition & 1 deletion cellbuf/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/charmbracelet/x/cellbuf
go 1.18

require (
github.com/charmbracelet/x/ansi v0.3.0
github.com/charmbracelet/x/ansi v0.3.1-0.20240913141229-307a077b6071
github.com/charmbracelet/x/wcwidth v0.0.0-20240910151828-580711411937
)

Expand Down
2 changes: 2 additions & 0 deletions cellbuf/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/charmbracelet/x/ansi v0.3.0 h1:CCsscv7vKC/DNYUYFQNNIOWzrpTUbLXL3d4fdFIQ0WE=
github.com/charmbracelet/x/ansi v0.3.0/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw=
github.com/charmbracelet/x/ansi v0.3.1-0.20240913141229-307a077b6071 h1:U7SFfgIZ++EoZjev9L5Tub7mtt/l7AtPEMinkgulMSg=
github.com/charmbracelet/x/ansi v0.3.1-0.20240913141229-307a077b6071/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw=
github.com/charmbracelet/x/wcwidth v0.0.0-20240910151828-580711411937 h1:uedm0silIB0T2oq5B7DmzIFK5uuzE11JGRGlLg0qd6w=
github.com/charmbracelet/x/wcwidth v0.0.0-20240910151828-580711411937/go.mod h1:4aLP2na+IIQOyb2ZxmwiJmcVN8cVfDk6T91kjSMOWRI=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
Expand Down
26 changes: 0 additions & 26 deletions cellbuf/parser.go

This file was deleted.

0 comments on commit 1584bc0

Please sign in to comment.