We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f98496 + 603c68b commit 8d77b1aCopy full SHA for 8d77b1a
src/browser/Linkifier2.ts
@@ -237,7 +237,10 @@ export class Linkifier2 implements ILinkifier2 {
237
// Add listener for rerendering
238
if (this._renderService) {
239
this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(e => {
240
- this._clearCurrentLink(e.start + 1 + this._bufferService.buffer.ydisp, e.end + 1 + this._bufferService.buffer.ydisp);
+ // When start is 0 a scroll most likely occurred, make sure links above the fold also get
241
+ // cleared.
242
+ const start = e.start === 0 ? 0 : e.start + 1 + this._bufferService.buffer.ydisp;
243
+ this._clearCurrentLink(start, e.end + 1 + this._bufferService.buffer.ydisp);
244
}));
245
}
246
0 commit comments