diff --git a/src/browser/services/DecorationService.ts b/src/browser/services/DecorationService.ts index ed3c7224..a77409db 100644 --- a/src/browser/services/DecorationService.ts +++ b/src/browser/services/DecorationService.ts @@ -142,7 +142,7 @@ export class Decoration extends Disposable implements IDecoration { return; } const line = this.marker.line - this._bufferService.buffers.active.ydisp; - if (line < 0 || line > this._bufferService.rows) { + if (line < 0 || line >= this._bufferService.rows) { // outside of viewport this._element.style.display = 'none'; } else {