Skip to content

Commit

Permalink
fix: ensure lastRunCommand works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
levelio committed Nov 6, 2024
1 parent 37f8b1b commit 70c7e5a
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 70c7e5a

Please sign in to comment.