Skip to content

Commit 4786944

Browse files
committed
Reset ghostTextIndex on execute
1 parent da3a13a commit 4786944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
146146
}
147147

148148
this._cursorIndex = -1;
149+
this._ghostTextIndex = -1;
149150
const event = this._createStateObject();
150151
if (this._lastUserInput !== '\u0003') {
151152
this._onDidInterrupt.fire(event);

0 commit comments

Comments
 (0)