It's a safer bet not to render any extra newlines whatsoever

This commit is contained in:
Christian Rocha 2020-05-11 23:05:24 -04:00
parent 767f4bec2d
commit 9dd9461dde
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018

2
tea.go
View File

@ -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