Skip to content

Commit 558ccac

Browse files
committed
Fix one off error
1 parent 7e9d977 commit 558ccac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
203203
let ghostTextIndex = -1;
204204
let proceedWithGhostTextCheck = false;
205205
let x = buffer.cursorX;
206-
while (x > 1) {
206+
while (x > 0) {
207207
const cell = line.getCell(--x);
208208
if (!cell) {
209209
break;

0 commit comments

Comments
 (0)