mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user