We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa21436 commit b5c060cCopy full SHA for b5c060c
src/ui/suggestionManager.ts
@@ -161,6 +161,9 @@ export class SuggestionManager {
161
162
update(keyPress: KeyPress): boolean {
163
const { name, shift, ctrl } = keyPress;
164
+ if (name == "return") {
165
+ this.#term.clearCommand(); // clear the current command on enter
166
+ }
167
if (!this.#suggestBlob) {
168
return false;
169
}
@@ -186,9 +189,6 @@ export class SuggestionManager {
186
189
187
190
this.#term.write(removals + chars);
188
191
} else {
- if (name == "return") {
- this.#term.clearCommand(); // clear the current command on enter
- }
192
193
194
log.debug({ msg: "handled keypress", ...keyPress });
0 commit comments