From eca80ba5f50d404a09e7b02c1bbf24bb94211069 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Wed, 23 Aug 2023 13:49:01 -0700 Subject: [PATCH] better names --- .../accessibility/browser/textAreaSyncAddon.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.ts b/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.ts index 379d6965b0a..9916a6f60d0 100644 --- a/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.ts +++ b/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.ts @@ -95,13 +95,13 @@ export class TextAreaSyncAddon extends Disposable implements ITerminalAddon { if (!lineNumber) { return; } - const line = buffer.getLine(lineNumber)?.translateToString(true); - if (!line) { + const commandLine = buffer.getLine(lineNumber)?.translateToString(true); + if (!commandLine) { this._logService.debug(`TextAreaSyncAddon#updateCommandAndCursor: no line`); return; } if (!!currentCommand.commandStartX) { - this._currentCommand = line.substring(currentCommand.commandStartX); + this._currentCommand = commandLine.substring(currentCommand.commandStartX); this._cursorX = buffer.cursorX - currentCommand.commandStartX; } else { this._currentCommand = undefined;