use updated private API name (#165069)

fix #164899
This commit is contained in:
Megan Rogge 2022-10-31 14:07:13 -04:00 committed by GitHub
parent 3dc149ae65
commit 30383d68ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ export interface IXtermCore {
_renderer: {
_renderLayers?: any[];
};
_onIntersectionChange: any;
_handleIntersectionChange: any;
};
}

View file

@ -349,7 +349,7 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal, II
// maximize on Windows/Linux would fire an event saying that the terminal was not
// visible.
if (!!this._canvasAddon) {
this._core._renderService?._onIntersectionChange({ intersectionRatio: 1 });
this._core._renderService?._handleIntersectionChange({ intersectionRatio: 1 });
// HACK: Force a refresh of the screen to ensure links are refresh corrected.
// This can probably be removed when the above hack is fixed in Chromium.
this.raw.refresh(0, this.raw.rows - 1);