From b4d7ebf2cb3c55400b666224a42d58b196938f7a Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Tue, 13 Dec 2022 15:11:37 -0500 Subject: [PATCH] fix(write): exit with status 130 on escape --- write/write.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/write/write.go b/write/write.go index 1674437..2e15415 100644 --- a/write/write.go +++ b/write/write.go @@ -41,11 +41,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: switch msg.String() { - case "ctrl+c": + case "ctrl+c", "esc": m.aborted = true m.quitting = true return m, tea.Quit - case "esc", "ctrl+d": + case "ctrl+d": m.quitting = true return m, tea.Quit }