Skip to content

Commit

Permalink
fix: weird commit when quitting whilst filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Slug-Boi committed Nov 25, 2024
1 parent a985051 commit 54d0386
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd/tui/tui_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54d0386

Please sign in to comment.