This commit is contained in:
2
vendor/github.com/charmbracelet/bubbletea/options.go
generated
vendored
2
vendor/github.com/charmbracelet/bubbletea/options.go
generated
vendored
@ -19,7 +19,7 @@ type ProgramOption func(*Program)
|
||||
// cancelled it will exit with an error ErrProgramKilled.
|
||||
func WithContext(ctx context.Context) ProgramOption {
|
||||
return func(p *Program) {
|
||||
p.ctx = ctx
|
||||
p.externalCtx = ctx
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user