Skip to content

Commit c53014e

Browse files
committed
fix: Batch commands to fix blink message
1 parent 95586f9 commit c53014e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/internal/ui/zoxide/model.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ func (m *Model) handleConfirm() common.ModelAction {
100100
}
101101

102102
func (m *Model) handleNormalKeyInput(msg tea.KeyMsg) tea.Cmd {
103-
m.textInput, _ = m.textInput.Update(msg)
104-
105-
// Return async query command
106-
return m.GetQueryCmd(m.textInput.Value())
103+
var cmd tea.Cmd
104+
m.textInput, cmd = m.textInput.Update(msg)
105+
return tea.Batch(cmd, m.GetQueryCmd(m.textInput.Value()))
107106
}
108107

109108
func (m *Model) GetQueryCmd(query string) tea.Cmd {

0 commit comments

Comments
 (0)