Skip to content

Commit

Permalink
fix: write pastes to client's stream
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Oct 28, 2023
1 parent c1d8e9a commit b6bf378
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pkg/cy/janet.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,7 @@ func (c *Cy) initJanet(ctx context.Context) (*janet.VM, error) {
return
}

node := client.Node()
if node == nil {
return
}

pane, ok := node.(*tree.Pane)
if !ok {
return
}

pane.Write([]byte(buffer))
client.renderer.Write([]byte(buffer))
},
"log": func(text string) {
c.log.Info().Msgf(text)
Expand Down

0 comments on commit b6bf378

Please sign in to comment.