mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
How about if we count the lines rendered correctly
This commit is contained in:
2
tea.go
2
tea.go
@@ -167,7 +167,7 @@ func (p *Program) render(model Model) {
|
||||
}
|
||||
|
||||
p.currentRender = view
|
||||
linesRendered := strings.Count(p.currentRender, "\r\n")
|
||||
linesRendered := strings.Count(p.currentRender, "\n")
|
||||
|
||||
// Add carriage returns to ensure that the cursor travels to the start of a
|
||||
// column after a newline. Keep in mind that this means that in the rest
|
||||
|
||||
Reference in New Issue
Block a user