Merge pull request #5948 from xtermjs/cursor/hoist-get-current-link-id-e29d

Hoist _getCurrentLinkId() in print() loop
This commit is contained in:
Daniel Imms
2026-05-27 13:09:09 -07:00
committed by GitHub
+3 -2
View File
@@ -567,8 +567,9 @@ export class InputHandler extends Disposable implements IInputHandler {
if (screenReaderMode) {
this._onA11yChar.fire(stringFromCodePoint(code));
}
if (this._getCurrentLinkId()) {
this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y);
const linkId = this._getCurrentLinkId();
if (linkId) {
this._oscLinkService.addLineToLink(linkId, this._activeBuffer.ybase + this._activeBuffer.y);
}
// goto next line if ch would overflow