mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
fix: weird commit when quitting whilst filtering
This commit is contained in:
@@ -171,6 +171,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
b := false
|
b := false
|
||||||
defer func(b *bool) { deletion = *b }(&b)
|
defer func(b *bool) { deletion = *b }(&b)
|
||||||
if m.list.FilterState() == list.Filtering {
|
if m.list.FilterState() == list.Filtering {
|
||||||
|
switch msg.String() {
|
||||||
|
case "ctrl+c":
|
||||||
|
selected = nil
|
||||||
|
return m, tea.Quit
|
||||||
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
// Handle keys from keyList (help menu)
|
// Handle keys from keyList (help menu)
|
||||||
|
|||||||
Reference in New Issue
Block a user