From 31920b101167aee4a4893ea728b7d6fd4e435c7b Mon Sep 17 00:00:00 2001 From: Chapman Pendery <35637443+cpendery@users.noreply.github.com> Date: Wed, 6 Mar 2024 01:02:29 -0500 Subject: [PATCH] fix: up arrow with no suggestions should be a history access (#187) Signed-off-by: Chapman Pendery --- src/ui/suggestionManager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/suggestionManager.ts b/src/ui/suggestionManager.ts index 74c5d38..9a0dfcc 100644 --- a/src/ui/suggestionManager.ts +++ b/src/ui/suggestionManager.ts @@ -158,6 +158,10 @@ export class SuggestionManager { update(keyPress: KeyPress): boolean { const { name } = keyPress; + if (!this.#suggestBlob) { + return false; + } + if (name == "escape") { this.#suggestBlob = undefined; } else if (name == "up") {