Skip to content

Commit

Permalink
refactor(tea): add context in Tea NewProgram
Browse files Browse the repository at this point in the history
- Add context to `tea.NewProgram` initialization in `commitCmd`

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Oct 19, 2024
1 parent 9a4481b commit 4199cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ var commitCmd = &cobra.Command{

if change {
m := initialPrompt(commitMessage)
p := tea.NewProgram(m)
p := tea.NewProgram(m, tea.WithContext(cmd.Context()))
if _, err := p.Run(); err != nil {
return err
}
Expand Down

0 comments on commit 4199cbb

Please sign in to comment.