From acb0f7a0ff6a55ef5d9438f70a65dd7520cdd4bd Mon Sep 17 00:00:00 2001 From: levelio Date: Thu, 14 Nov 2024 13:19:57 +0800 Subject: [PATCH] fix: nr command lastRunCommand not work (#238) --- src/commands/nr.ts | 2 ++ 1 file changed, 2 insertions(+) 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)) },