charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
27.24k stars 788 forks source link

First line not rendering until event happens #1000

Closed mistakenelf closed 5 months ago

mistakenelf commented 5 months ago

Describe the bug Just updated to 0.26.1 and noticed that the first line of my UI does not render until an event takes place(keypress, window resize etc). When downgrading to 0.25, everything works correctly, just wondering if something new was introduced/fixed that I need to account for or if this is maybe a regression?

Setup Please complete the following information along with version numbers, if applicable.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://github.com/mistakenelf/fm
  2. Run the app by running make
  3. Noticed that the first line is not rendered until a keypress is made or window is resized
  4. Downgrade to 0.25 of bubbletea, and noticed that it works as expected

Source Code https://github.com/mistakenelf/fm

Expected behavior The first line of the UI should render without any actions

Screenshots Notice that the first line of the filetree and the help screen on the right are not rendering until an action happens

image
meowgorithm commented 5 months ago

Noted, thanks for the report, Tyler. I'm able to reproduce on various terminals on macOS. Just so we can diagnose properly, would you mind posting a screenshot of the actual expected outputs together?

mistakenelf commented 5 months ago

Sure thing, here is what the expected output would look like:

default
meowgorithm commented 5 months ago

Thanks again for reporting this, @mistakenelf — extremely appreciated. @aymanbagabas fixed this like a pro and we're releasing Bubble Tea v0.26.2 with the fix in a few minutes.