File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,15 @@ export class Linkifier2 extends Disposable implements ILinkifier2 {
315315 // When start is 0 a scroll most likely occurred, make sure links above the fold also get
316316 // cleared.
317317 const start = e . start === 0 ? 0 : e . start + 1 + this . _bufferService . buffer . ydisp ;
318+ const oldEvent = this . _currentLink ? this . _lastMouseEvent : undefined ;
318319 this . _clearCurrentLink ( start , e . end + 1 + this . _bufferService . buffer . ydisp ) ;
320+ if ( oldEvent && this . _element ) {
321+ // re-eval previously active link after changes
322+ const position = this . _positionFromMouseEvent ( oldEvent , this . _element , this . _mouseService ! ) ;
323+ if ( position ) {
324+ this . _askForLink ( position , false ) ;
325+ }
326+ }
319327 } ) ) ;
320328 }
321329 }
You can’t perform that action at this time.
0 commit comments