hide decorations >= bufferService rows

This commit is contained in:
meganrogge
2022-03-11 13:13:05 -05:00
parent e7bbc4151a
commit b4de2787c7
+1 -1
View File
@@ -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 {