Skip to content

Commit

Permalink
fix: nr command lastRunCommand not work (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
levelio authored Nov 14, 2024
1 parent 37f8b1b commit acb0f7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/nr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ runCli(async (agent, args, ctx) => {
type: 'autocomplete',
choices,
async suggest(input: string, choices: Choice[]) {
if (!input)
return choices
const results = fzf.find(input)
return results.map(r => choices.find(c => c.value === r.item.key))
},
Expand Down

0 comments on commit acb0f7a

Please sign in to comment.