fix: weird commit when quitting whilst filtering

This commit is contained in:
Slug-Boi
2024-11-25 22:31:30 +01:00
parent a9850510e3
commit 54d038680f
+5
View File
@@ -171,6 +171,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
b := false
defer func(b *bool) { deletion = *b }(&b)
if m.list.FilterState() == list.Filtering {
switch msg.String() {
case "ctrl+c":
selected = nil
return m, tea.Quit
}
break
}
// Handle keys from keyList (help menu)