Skip to content

Commit

Permalink
Merge pull request #4298 from jerch/fix_4295
Browse files Browse the repository at this point in the history
re-eval previous active link
  • Loading branch information
Tyriar committed Dec 16, 2022
2 parents 917e31e + 440da4a commit f79644b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/browser/Linkifier2.ts
Expand Up @@ -315,7 +315,15 @@ export class Linkifier2 extends Disposable implements ILinkifier2 {
// When start is 0 a scroll most likely occurred, make sure links above the fold also get
// cleared.
const start = e.start === 0 ? 0 : e.start + 1 + this._bufferService.buffer.ydisp;
const oldEvent = this._currentLink ? this._lastMouseEvent : undefined;
this._clearCurrentLink(start, e.end + 1 + this._bufferService.buffer.ydisp);
if (oldEvent && this._element) {
// re-eval previously active link after changes
const position = this._positionFromMouseEvent(oldEvent, this._element, this._mouseService!);
if (position) {
this._askForLink(position, false);
}
}
}));
}
}
Expand Down

0 comments on commit f79644b

Please sign in to comment.