Skip to content
Myr

Fix bug where extra blank line was being adding to output

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 72c1a1c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:tea.go+1 added-1 removed
196 unmodified lines
197}198199// Render a view to the terminal. Returns the number of lines rendered.200func (p *Program) render(model Model, linesRendered int) int {201 view := p.view(model) + "\n"201 view := "\n" + p.view(model)202203 // We need to add carriage returns to ensure that the cursor travels to the204 // start of a column after a newline205 view = strings.Replace(view, "\n", "\r\n", -1)
91 unmodified lines