Closed Art-S-D closed 2 months ago
I tried logging the result from sb.String() to a file and it looks correct
After looking at it more, it looks like it's the last \n that breaks things
Hi! This is a dup of https://github.com/charmbracelet/bubbletea/issues/304 (which we should re-examine). If you feel it's not a dupe please reopen this issue.
Describe the bug When the View method returns a string that has as many lines as the terminal, only the first lines of the screen will be redrawn. It seems to only happen when using a strings.Builder and goes away when there are more lines than the height of the terminal
Setup Please complete the following information along with version numbers, if applicable.
To Reproduce
Here is a minimal version of the code I use
Scrolling the screen down works perfectly but when scrolling up it only redraws the first line.
Source Code https://github.com/Art-S-D/test-bubbletea
Expected behavior The entire screen should render.
Screenshots![asciicast](https://asciinema.org/a/lDaWZ9SBLDDyeNYpsR0LKUXjK.svg)