a5dec44c9dbd296c1c786ec340819e36c19536cd
- Author
- Toby Padilla <toby@charm.sh>
- Committer
- Toby Padilla <toby@charm.sh>
- Date
Message
Use updated Wish middleware to set color profile
Diff
1diff --git a/go.mod b/go.mod
2index de5dba55eb36e0daddffbbdc10334ed7d70844bc..e41ca0fca7cd8b6477f9be0e923fbb9bbe824f3e 100644
3--- a/go.mod
4+++ b/go.mod
5@@ -9,13 +9,13 @@ require (
6 github.com/charmbracelet/bubbletea v0.19.0
7 github.com/charmbracelet/glamour v0.3.0
8 github.com/charmbracelet/lipgloss v0.4.0
9- github.com/charmbracelet/wish v0.0.0-20210920172735-41a835204b30
10+ github.com/charmbracelet/wish v0.0.0-00010101000000-000000000000
11 github.com/dustin/go-humanize v1.0.0
12 github.com/gliderlabs/ssh v0.3.3
13 github.com/go-git/go-git/v5 v5.4.2
14 github.com/meowgorithm/babyenv v1.3.1
15 github.com/muesli/reflow v0.3.0
16- github.com/muesli/termenv v0.9.0
17+ github.com/muesli/termenv v0.9.0 // indirect
18 golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
19 gopkg.in/yaml.v2 v2.3.0
20 )
21diff --git a/internal/tui/commands.go b/internal/tui/commands.go
22index 5b6f32605b4dc6ae3e65298fb49e71f26c1b16b6..6ace2cf37ace9d5e120ddd2fc5a64dc6e1478320 100644
23--- a/internal/tui/commands.go
24+++ b/internal/tui/commands.go
25@@ -9,7 +9,6 @@ import (
26 br "github.com/charmbracelet/soft/internal/tui/bubbles/repo"
27 "github.com/charmbracelet/soft/internal/tui/bubbles/selection"
28 gm "github.com/charmbracelet/wish/git"
29- "github.com/muesli/termenv"
30 )
31
32 type errMsg struct{ err error }
33@@ -22,7 +21,6 @@ func (b *Bubble) setupCmd() tea.Msg {
34 if b.config == nil || b.config.Source == nil {
35 return errMsg{err: fmt.Errorf("config not set")}
36 }
37- lipgloss.SetColorProfile(termenv.ANSI256)
38 mes, err := b.menuEntriesFromSource()
39 if err != nil {
40 return errMsg{err}