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

Function comparePoints

src/ink/selection.ts:227–231  ·  view source on GitHub ↗

-1 if a < b, 1 if a > b, 0 if equal (reading order: row then col).

(a: Point, b: Point)

Source from the content-addressed store, hash-verified

225
226/** -1 if a < b, 1 if a > b, 0 if equal (reading order: row then col). */
227function comparePoints(a: Point, b: Point): number {
228 if (a.row !== b.row) return a.row < b.row ? -1 : 1
229 if (a.col !== b.col) return a.col < b.col ? -1 : 1
230 return 0
231}
232
233/**
234 * Select the word at (col, row) by scanning the screen buffer for the

Callers 2

extendSelectionFunction · 0.85
selectionBoundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected