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 9637c47 commit 68a8e14Copy full SHA for 68a8e14
src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.ts
@@ -101,8 +101,8 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon {
101
this._logService.debug(`TextAreaSyncAddon#updateCommandAndCursor: no line`);
102
return;
103
}
104
- const startX = isMacintosh ? currentCommand.commandStartX : 0;
105
- if (!!currentCommand && !!startX) {
+ const startX = isMacintosh || currentCommand.commandStartX !== undefined ? currentCommand.commandStartX : 0;
+ if (!!currentCommand && startX !== undefined) {
106
this._currentCommand = commandLine.substring(startX);
107
this._cursorX = buffer.cursorX - startX;
108
} else {
0 commit comments