From 14478e2a3cb88e9daa7a8323f98e68211b47155d Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Sat, 8 Jan 2022 14:08:19 +0900 Subject: [PATCH] Fix list-default to be able to exit with ctrl+c --- examples/list-default/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/list-default/main.go b/examples/list-default/main.go index f9a3274..9ec65bb 100644 --- a/examples/list-default/main.go +++ b/examples/list-default/main.go @@ -31,7 +31,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: if msg.String() == "ctrl+c" { - return m, nil + return m, tea.Quit } case tea.WindowSizeMsg: top, right, bottom, left := docStyle.GetMargin()