From 5ae602953c198a462abc5f12cb4d5fcb452ab8e7 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 11 May 2020 20:58:21 -0400 Subject: [PATCH] Fix bug where extra blank line was being adding to output --- tea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tea.go b/tea.go index ed60361..e6d9b85 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 := p.view(model) + "\n" + view := "\n" + p.view(model) // We need to add carriage returns to ensure that the cursor travels to the // start of a column after a newline