Fix list-default to be able to exit with ctrl+c

This commit is contained in:
Kyosuke Fujimoto 2022-01-08 14:08:19 +09:00 committed by Christian Rocha
parent 98a8bcf62a
commit 14478e2a3c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) { switch msg := msg.(type) {
case tea.KeyMsg: case tea.KeyMsg:
if msg.String() == "ctrl+c" { if msg.String() == "ctrl+c" {
return m, nil return m, tea.Quit
} }
case tea.WindowSizeMsg: case tea.WindowSizeMsg:
top, right, bottom, left := docStyle.GetMargin() top, right, bottom, left := docStyle.GetMargin()