From b6bf37812ed2f2e04cd2f9328e2b45f74a17d1b5 Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Sat, 28 Oct 2023 10:01:38 -0400 Subject: [PATCH] fix: write pastes to client's stream --- pkg/cy/janet.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pkg/cy/janet.go b/pkg/cy/janet.go index f8265104..6dc282d7 100644 --- a/pkg/cy/janet.go +++ b/pkg/cy/janet.go @@ -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)