mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-16 18:15:03 -07:00
chore: make CatchPanics an option flag
This commit is contained in:
@@ -52,7 +52,7 @@ func WithoutSignalHandler() ProgramOption {
|
||||
// cleanup on exit.
|
||||
func WithoutCatchPanics() ProgramOption {
|
||||
return func(p *Program) {
|
||||
p.CatchPanics = false
|
||||
p.startupOptions |= withoutCatchPanics
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user