forked from Mirrors/bubbletea
It's a safer bet not to render any extra newlines whatsoever
This commit is contained in:
parent
767f4bec2d
commit
9dd9461dde
2
tea.go
2
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
|
||||
|
|
Loading…
Reference in New Issue