mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-26 19:36:52 +01:00
fix #195195
This commit is contained in:
@@ -103,7 +103,9 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon {
|
||||
}
|
||||
if (currentCommand.commandStartX !== undefined) {
|
||||
this._currentCommand = commandLine.substring(currentCommand.commandStartX);
|
||||
this._cursorX = buffer.cursorX - currentCommand.commandStartX;
|
||||
const cursorPosition = buffer.cursorX - currentCommand.commandStartX;
|
||||
this._cursorX = cursorPosition >= 0 ? cursorPosition : 0;
|
||||
this._logService.debug('cursor', this._cursorX);
|
||||
} else {
|
||||
this._currentCommand = undefined;
|
||||
this._cursorX = undefined;
|
||||
|
||||
Reference in New Issue
Block a user