Use updated Wish middleware to set color profile

Toby Padilla created

Change summary

go.mod                   | 4 ++--
internal/tui/commands.go | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)

Detailed changes

go.mod 🔗

@@ -9,13 +9,13 @@ require (
 	github.com/charmbracelet/bubbletea v0.19.0
 	github.com/charmbracelet/glamour v0.3.0
 	github.com/charmbracelet/lipgloss v0.4.0
-	github.com/charmbracelet/wish v0.0.0-20210920172735-41a835204b30
+	github.com/charmbracelet/wish v0.0.0-00010101000000-000000000000
 	github.com/dustin/go-humanize v1.0.0
 	github.com/gliderlabs/ssh v0.3.3
 	github.com/go-git/go-git/v5 v5.4.2
 	github.com/meowgorithm/babyenv v1.3.1
 	github.com/muesli/reflow v0.3.0
-	github.com/muesli/termenv v0.9.0
+	github.com/muesli/termenv v0.9.0 // indirect
 	golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
 	gopkg.in/yaml.v2 v2.3.0
 )

internal/tui/commands.go 🔗

@@ -9,7 +9,6 @@ import (
 	br "github.com/charmbracelet/soft/internal/tui/bubbles/repo"
 	"github.com/charmbracelet/soft/internal/tui/bubbles/selection"
 	gm "github.com/charmbracelet/wish/git"
-	"github.com/muesli/termenv"
 )
 
 type errMsg struct{ err error }
@@ -22,7 +21,6 @@ func (b *Bubble) setupCmd() tea.Msg {
 	if b.config == nil || b.config.Source == nil {
 		return errMsg{err: fmt.Errorf("config not set")}
 	}
-	lipgloss.SetColorProfile(termenv.ANSI256)
 	mes, err := b.menuEntriesFromSource()
 	if err != nil {
 		return errMsg{err}