use ybase + y when clearing markers

This commit is contained in:
meganrogge
2022-02-24 12:02:11 -06:00
parent d2e34277e8
commit 34ec80a322
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1231,8 +1231,8 @@ export class InputHandler extends Disposable implements IInputHandler {
private _resetBufferLine(y: number): void {
const line = this._activeBuffer.lines.get(this._activeBuffer.ybase + y)!;
line.fill(this._activeBuffer.getNullCell(this._eraseAttrData()));
this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase + y);
line.isWrapped = false;
this._bufferService.buffer.clearMarkers(y);
}
/**
+1 -1
View File
@@ -591,7 +591,7 @@ export class Buffer implements IBuffer {
for (let i = 0; i < this.markers.length; i++) {
if (this.markers[i].line === y) {
this.markers[i].dispose();
this.markers.splice(i--, 1);
this.markers.splice(i, 1);
}
}
} else {