mirror of
https://github.com/charmbracelet/gum
synced 2026-03-14 13:45:45 +01:00
fix(confirm): ensure --show-output show the right answer (#853)
This commit is contained in:
parent
93f6857e3d
commit
2b72e80297
1 changed files with 1 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ func (o Options) Run() error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("unable to confirm: %w", err)
|
||||
}
|
||||
m = tm.(model)
|
||||
|
||||
if o.ShowOutput {
|
||||
confirmationText := m.negative
|
||||
|
|
@ -58,7 +59,6 @@ func (o Options) Run() error {
|
|||
fmt.Println(m.prompt, confirmationText)
|
||||
}
|
||||
|
||||
m = tm.(model)
|
||||
if m.confirmation {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue