MCPcopy
hub / github.com/codeaashu/claude-code / isCellSelected

Method isCellSelected

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

Source from the content-addressed store, hash-verified

1587 a >= e3.rows || h < 0 ? this.clear() : (this.hasSelection = true, this.columnSelectMode = s2, this.viewportStartRow = n, this.viewportEndRow = o, this.viewportCappedStartRow = a, this.viewportCappedEndRow = h, this.startCol = t3[0], this.endCol = i3[0]);
1588 }
1589 isCellSelected(e3, t3, i3) {
1590 return !!this.hasSelection && (i3 -= e3.buffer.active.viewportY, this.columnSelectMode ? this.startCol <= this.endCol ? t3 >= this.startCol && i3 >= this.viewportCappedStartRow && t3 < this.endCol && i3 <= this.viewportCappedEndRow : t3 < this.startCol && i3 >= this.viewportCappedStartRow && t3 >= this.endCol && i3 <= this.viewportCappedEndRow : i3 > this.viewportStartRow && i3 < this.viewportEndRow || this.viewportStartRow === this.viewportEndRow && i3 === this.viewportStartRow && t3 >= this.startCol && t3 < this.endCol || this.viewportStartRow < this.viewportEndRow && i3 === this.viewportEndRow && t3 < this.endCol || this.viewportStartRow < this.viewportEndRow && i3 === this.viewportStartRow && t3 >= this.startCol);
1591 }
1592 }
1593 t2.createSelectionRenderModel = function() {
1594 return new i2();

Callers 1

resolveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected