diff --git a/pkg/cy/api/cmd.go b/pkg/cy/api/cmd.go index cca5e43c..a889ed98 100644 --- a/pkg/cy/api/cmd.go +++ b/pkg/cy/api/cmd.go @@ -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( @@ -53,7 +53,7 @@ func (c *Cmd) New( Directory: path, }, dataDir, - c.replayBinds, + c.Binds, ) if err != nil { return 0, err diff --git a/pkg/cy/janet.go b/pkg/cy/janet.go index d83fe5a4..8a64a37f 100644 --- a/pkg/cy/janet.go +++ b/pkg/cy/janet.go @@ -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},