Skip to content

Commit 0fbe2fe

Browse files
committed
refactor: refactor Render function to use formatted string for content
- Update `Render` function call to use formatted string for `content`. Signed-off-by: codiing-hui <wecoding@yeah.net>
1 parent 764b0bd commit 0fbe2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ui/console/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func RenderChatMessages(messages []llms.ChatMessage) error {
6363
return err
6464
}
6565
content = html.UnescapeString(content)
66-
Render(content)
66+
Render("%s", content)
6767
_ = clipboard.WriteAll(content)
6868
termenv.Copy(content)
6969
PrintConfirmation("COPIED", "Ask prompt content copied to clipboard!")

0 commit comments

Comments
 (0)