MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _linkAtPosition

Method _linkAtPosition

src/server/web/public/terminal.js:344–347  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

342 ((_a = this._currentLink) == null ? void 0 : _a.state) && (this._currentLink.state.isHovered = false, this._currentLink.state.decorations.underline && this._fireUnderlineEvent(t3, false), this._currentLink.state.decorations.pointerCursor && e3.classList.remove("xterm-cursor-pointer")), t3.leave && t3.leave(i3, t3.text);
343 }
344 _linkAtPosition(e3, t3) {
345 const i3 = e3.range.start.y * this._bufferService.cols + e3.range.start.x, s3 = e3.range.end.y * this._bufferService.cols + e3.range.end.x, r2 = t3.y * this._bufferService.cols + t3.x;
346 return i3 <= r2 && r2 <= s3;
347 }
348 _positionFromMouseEvent(e3, t3, i3) {
349 const s3 = i3.getCoords(e3, t3, this._bufferService.cols, this._bufferService.rows);
350 if (s3) return { x: s3[0], y: s3[1] + this._bufferService.buffer.ydisp };

Callers 4

_handleHoverMethod · 0.80
_handleMouseUpMethod · 0.80
_handleNewLinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected