Skip to content

Commit

Permalink
Fix tabgroup example
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea committed Feb 26, 2024
1 parent a3f29f0 commit f5eb950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions examples/tabgroup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func initialModel() model {
)

bindings := newBindings(tabGroup)
statusBar := statusbar.New(bindings, statusbar.WithStatus())
statusBar := statusbar.New(bindings)

header := header.New(
header.WithContent(
Expand Down Expand Up @@ -172,9 +172,6 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {

switch msg := msg.(type) {

case loadCompleted:
m.loadcompleted = true

case tea.WindowSizeMsg:
m.document.SetSize(msg.Width, msg.Height)
case tea.KeyMsg:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/remogatto/sugarfoam

go 1.21.6
go 1.22

require (
github.com/charmbracelet/bubbles v0.18.0
Expand Down

0 comments on commit f5eb950

Please sign in to comment.