mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
I didn't realise at the time, but the tea.Program and the renderer share the mutex. This make the code difficult to reason about - it turns out the program sometimes acquires the lock and then calls the `setAltScreen` method of the renderer which in turns calls `repaint`. That causes a deadlock as `repaint` is trying to acquire the lock too.
12 KiB
12 KiB