From 9dd9461dde5581fc8bfcd1d64e62e0ff6e6fd9aa Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 11 May 2020 23:05:24 -0400 Subject: [PATCH] It's a safer bet not to render any extra newlines whatsoever --- tea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tea.go b/tea.go index e6d9b85..7ea73de 100644 --- a/tea.go +++ b/tea.go @@ -198,7 +198,7 @@ func (p *Program) Start() error { // Render a view to the terminal. Returns the number of lines rendered. func (p *Program) render(model Model, linesRendered int) int { - view := "\n" + p.view(model) + view := p.view(model) // We need to add carriage returns to ensure that the cursor travels to the // start of a column after a newline