Skip to content

Commit

Permalink
fix: bug with replay binds in cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Nov 14, 2023
1 parent 21d84c4 commit 09eb41f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cy/api/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ type CmdParams struct {
}

type Cmd struct {
Lifetime util.Lifetime
Tree *tree.Tree
replayBinds *bind.BindScope
Lifetime util.Lifetime
Tree *tree.Tree
Binds *bind.BindScope
}

func (c *Cmd) New(
Expand Down Expand Up @@ -53,7 +53,7 @@ func (c *Cmd) New(
Directory: path,
},
dataDir,
c.replayBinds,
c.Binds,
)
if err != nil {
return 0, err
Expand Down
1 change: 1 addition & 0 deletions pkg/cy/janet.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (c *Cy) initJanet(ctx context.Context, dataDir string) (*janet.VM, error) {
"cmd": &api.Cmd{
Lifetime: util.NewLifetime(c.Ctx()),
Tree: c.tree,
Binds: c.replayBinds,
},
"group": &api.GroupModule{Tree: c.tree},
"pane": &api.PaneModule{Tree: c.tree},
Expand Down

0 comments on commit 09eb41f

Please sign in to comment.