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 de1b891 commit 2f81f8bCopy full SHA for 2f81f8b
src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.ts
@@ -153,7 +153,13 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
153
}
154
155
this._cursorIndex = -1;
156
- this._ghostTextIndex = -1;
+
157
+ // Remove any ghost text from the input if it exists on execute
158
+ if (this._ghostTextIndex !== -1) {
159
+ this._value = this._value.substring(0, this._ghostTextIndex);
160
+ this._ghostTextIndex = -1;
161
+ }
162
163
const event = this._createStateObject();
164
if (this._lastUserInput === '\u0003') {
165
this._onDidInterrupt.fire(event);
0 commit comments