mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
A panic in the goroutine that polls the terminal for events leaves the terminal in raw mode and on the alternate screen. The panic is then hard to read, and the terminal needs a reset afterwards. Guard this goroutine the same way as the worker goroutines. Guard the goroutines that send a resize event too; they are unlikely to panic, but this way all of gocui's goroutines are guarded, and a check for unguarded goroutines doesn't need any exceptions. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>