diff --git a/src/ui/suggestionManager.ts b/src/ui/suggestionManager.ts index 6cb1b5c..4ac7ec2 100644 --- a/src/ui/suggestionManager.ts +++ b/src/ui/suggestionManager.ts @@ -50,6 +50,9 @@ export class SuggestionManager { private async _loadSuggestions(): Promise { const commandText = this.#term.getCommandState().commandText; + if (!commandText) { + this.#command = ""; + } if (!commandText || this.#hideSuggestions) { this.#suggestBlob = undefined; this.#activeSuggestionIdx = 0;