File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/contrib/terminalContrib/accessibility/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon {
100
100
this . _logService . debug ( `TextAreaSyncAddon#updateCommandAndCursor: no line` ) ;
101
101
return ;
102
102
}
103
- if ( ! ! currentCommand . commandStartX ) {
104
- this . _currentCommand = commandLine . substring ( currentCommand . commandStartX ) ;
105
- this . _cursorX = buffer . cursorX - currentCommand . commandStartX ;
103
+ if ( ! ! currentCommand ) {
104
+ this . _currentCommand = commandLine . substring ( currentCommand . commandStartX ?? 0 ) ;
105
+ this . _cursorX = buffer . cursorX - ( currentCommand . commandStartX ?? 0 ) ;
106
106
} else {
107
107
this . _currentCommand = undefined ;
108
108
this . _cursorX = undefined ;
You can’t perform that action at this time.
0 commit comments