Skip to content

Commit 68a8e14

Browse files
committed
fix issue
1 parent 9637c47 commit 68a8e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon {
101101
this._logService.debug(`TextAreaSyncAddon#updateCommandAndCursor: no line`);
102102
return;
103103
}
104-
const startX = isMacintosh ? currentCommand.commandStartX : 0;
105-
if (!!currentCommand && !!startX) {
104+
const startX = isMacintosh || currentCommand.commandStartX !== undefined ? currentCommand.commandStartX : 0;
105+
if (!!currentCommand && startX !== undefined) {
106106
this._currentCommand = commandLine.substring(startX);
107107
this._cursorX = buffer.cursorX - startX;
108108
} else {

0 commit comments

Comments
 (0)