hide decorations >= bufferService rows
This commit is contained in:
@@ -142,7 +142,7 @@ export class Decoration extends Disposable implements IDecoration {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const line = this.marker.line - this._bufferService.buffers.active.ydisp;
|
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
|
// outside of viewport
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user