diff --git a/src/common/InputHandler.ts b/src/common/InputHandler.ts index 0b12dd8e1..9338d0d15 100644 --- a/src/common/InputHandler.ts +++ b/src/common/InputHandler.ts @@ -1246,7 +1246,7 @@ export class InputHandler extends Disposable implements IInputHandler { this._eraseInBufferLine(j, 0, this._activeBuffer.x + 1, true, respectProtect); if (this._activeBuffer.x + 1 >= this._bufferService.cols) { // Deleted entire previous line. This next line can no longer be wrapped. - const nextLine = this._activeBuffer.lines.get(j + 1); + const nextLine = this._activeBuffer.lines.get(this._activeBuffer.ybase + j + 1); if (nextLine) { nextLine.isWrapped = false; }