Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type printLineMessage struct {
func Println(args ...any) Cmd {
return func() Msg {
return printLineMessage{
messageBody: fmt.Sprint(args...),
messageBody: fmt.Sprintln(args...),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ func (p *Program) RestoreTerminal() error {
// If the altscreen is active no output will be printed.
func (p *Program) Println(args ...any) {
p.msgs <- printLineMessage{
messageBody: fmt.Sprint(args...),
messageBody: fmt.Sprintln(args...),
}
}

Expand Down
Loading