diff --git a/src/commands/nr.ts b/src/commands/nr.ts index da0fc8a..f5d955f 100644 --- a/src/commands/nr.ts +++ b/src/commands/nr.ts @@ -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)) },