mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
It's a safer bet not to render any extra newlines whatsoever
This commit is contained in:
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.
|
// Render a view to the terminal. Returns the number of lines rendered.
|
||||||
func (p *Program) render(model Model, linesRendered int) int {
|
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
|
// We need to add carriage returns to ensure that the cursor travels to the
|
||||||
// start of a column after a newline
|
// start of a column after a newline
|
||||||
|
|||||||
Reference in New Issue
Block a user