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.
2 parents a21b3e7 + 2f81f8b commit da02a86Copy full SHA for da02a86
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