From a5dec44c9dbd296c1c786ec340819e36c19536cd Mon Sep 17 00:00:00 2001 From: Toby Padilla Date: Tue, 2 Nov 2021 12:18:30 -0500 Subject: [PATCH] Use updated Wish middleware to set color profile --- go.mod | 4 ++-- internal/tui/commands.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index de5dba55e..e41ca0fca 100644 --- a/go.mod +++ b/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 ) diff --git a/internal/tui/commands.go b/internal/tui/commands.go index 5b6f32605..6ace2cf37 100644 --- a/internal/tui/commands.go +++ b/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}