From 36ef76185c49baf998a2ff6c0e8da948410d2579 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Fri, 13 Jan 2023 12:08:06 -0500 Subject: [PATCH] fix(confirm): esc should not exit with 130 --- confirm/confirm.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/confirm/confirm.go b/confirm/confirm.go index b532e52..7e6eeb1 100644 --- a/confirm/confirm.go +++ b/confirm/confirm.go @@ -58,9 +58,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil case tea.KeyMsg: switch msg.String() { - case "ctrl+c", "esc": - m.confirmation = false + case "ctrl+c": m.aborted = true + fallthrough + case "esc": + m.confirmation = false m.quitting = true return m, tea.Quit case "q", "n", "N":