mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-24 16:59:22 +03:00
Most goroutines run their function through utils.Safe, which closes the screen if the function panics. Without it, the panic is printed to a terminal that is still in raw mode and on the alternate screen, and the terminal needs a reset afterwards. Go has no process-wide hook for panics, so every goroutine has to do this itself. Use utils.Safe for the goroutines that don't use it yet. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>