mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-21 07:39:51 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user