Merge pull request #191912 from microsoft/merogge/windows-command-start

fix undefined check, get textarea sync to work for windows
This commit is contained in:
Megan Rogge
2023-08-31 09:44:37 -07:00
committed by GitHub
@@ -100,7 +100,7 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon {
this._logService.debug(`TextAreaSyncAddon#updateCommandAndCursor: no line`);
return;
}
if (!!currentCommand.commandStartX) {
if (currentCommand.commandStartX !== undefined) {
this._currentCommand = commandLine.substring(currentCommand.commandStartX);
this._cursorX = buffer.cursorX - currentCommand.commandStartX;
} else {