mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
use ybase + y when clearing markers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user