Skip to content

Commit 3cd6f48

Browse files
authored
Merge pull request microsoft#191912 from microsoft/merogge/windows-command-start
fix undefined check, get textarea sync to work for windows
2 parents 414606b + a3d842e commit 3cd6f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon {
100100
this._logService.debug(`TextAreaSyncAddon#updateCommandAndCursor: no line`);
101101
return;
102102
}
103-
if (!!currentCommand.commandStartX) {
103+
if (currentCommand.commandStartX !== undefined) {
104104
this._currentCommand = commandLine.substring(currentCommand.commandStartX);
105105
this._cursorX = buffer.cursorX - currentCommand.commandStartX;
106106
} else {

0 commit comments

Comments
 (0)