fix: up arrow with no suggestions should be a history access (#187)

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
Chapman Pendery
2024-03-05 22:02:29 -08:00
committed by GitHub
parent bddf56f2f0
commit 31920b1011
+4
View File
@@ -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") {