mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
reeval previous active link, fixes #4295
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user