From 01c44d687eca23bf101c9617c6db26683c2c8c9e Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 23 Sep 2023 00:27:24 -0400 Subject: [PATCH] add multi line strings to final prompt --- cmd/cmd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/cmd.go b/cmd/cmd.go index 92ae058c..6c2bb0b5 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -581,6 +581,7 @@ func generateInteractive(cmd *cobra.Command, model string) error { isMultiLine = false painter.HideHint = false multiLineBuffer += strings.TrimSuffix(line, `"""`) + line = multiLineBuffer multiLineBuffer = "" scanner.SetPrompt(">>> ") } else {