Skip to content

Commit 14a57e2

Browse files
committed
fix: empty suggestions block history scrolling
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
1 parent e0c3c61 commit 14a57e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const getSuggestions = async (cmd: string, cwd: string, shell: Shell): Pr
112112
}
113113
const result = await runSubcommand(activeCmd.slice(1), subcommand, resolvedCwd, shell);
114114
if (result == null) return;
115+
if (result.suggestions.length == 0 && !result.argumentDescription) return;
115116

116117
const charactersToDrop = lastCommand?.complete ? 0 : lastCommand?.tokenLength;
117118
return { ...result, charactersToDrop };

0 commit comments

Comments
 (0)