mirror of
https://github.com/charmbracelet/gum
synced 2024-06-29 10:40:28 +02:00
bugfix: proper handling of 'n'
This commit is contained in:
parent
65087b31ea
commit
ccd452b35a
|
@ -94,6 +94,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
if m.options[Negative] != "" {
|
if m.options[Negative] != "" {
|
||||||
m.selectedOption = Negative
|
m.selectedOption = Negative
|
||||||
m.quitting = true
|
m.quitting = true
|
||||||
|
return m, tea.Quit
|
||||||
}
|
}
|
||||||
case "ctrl+c":
|
case "ctrl+c":
|
||||||
m.selectedOption = Cancel
|
m.selectedOption = Cancel
|
||||||
|
|
Loading…
Reference in a new issue