Skip to content

Commit e0c3c61

Browse files
authored
fix: suggestions don't appear after using history to view command after execution (#342)
Signed-off-by: Chapman Pendery <[email protected]>
1 parent 081c0e1 commit e0c3c61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui/suggestionManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export class SuggestionManager {
5050

5151
private async _loadSuggestions(): Promise<void> {
5252
const commandText = this.#term.getCommandState().commandText;
53+
if (!commandText) {
54+
this.#command = "";
55+
}
5356
if (!commandText || this.#hideSuggestions) {
5457
this.#suggestBlob = undefined;
5558
this.#activeSuggestionIdx = 0;

0 commit comments

Comments
 (0)