Skip to content

Commit c5a5de5

Browse files
committed
Fix Q and ESC bug
* The command was terminated if Q or ESC is typed when the filtering is active. Signed-off-by: Gökhan Özeloğlu <[email protected]>
1 parent 982cb82 commit c5a5de5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
const (
15-
appVersion = "0.2.1"
15+
appVersion = "0.2.2"
1616
)
1717

1818
var (

tui/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (m Model) Init() tea.Cmd {
7474
func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
7575
switch msg := msg.(type) {
7676
case tea.KeyMsg:
77-
if msg.String() == "ctrl+c" || msg.String() == "q" || msg.String() == tea.KeyEsc.String() {
77+
if msg.String() == "ctrl+c" {
7878
return m, tea.Quit
7979
}
8080
if msg.String() == tea.KeyEnter.String() && !m.deletionEnabled {

0 commit comments

Comments
 (0)