Skip to content

Commit

Permalink
Fix Q and ESC bug
Browse files Browse the repository at this point in the history
* The command was terminated if Q or ESC is typed when the filtering is active.

Signed-off-by: Gökhan Özeloğlu <gozeloglu@gmail.com>
  • Loading branch information
gozeloglu committed Dec 6, 2024
1 parent 982cb82 commit c5a5de5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
appVersion = "0.2.1"
appVersion = "0.2.2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion tui/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (m Model) Init() tea.Cmd {
func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyMsg:
if msg.String() == "ctrl+c" || msg.String() == "q" || msg.String() == tea.KeyEsc.String() {
if msg.String() == "ctrl+c" {
return m, tea.Quit
}
if msg.String() == tea.KeyEnter.String() && !m.deletionEnabled {
Expand Down

0 comments on commit c5a5de5

Please # to comment.