MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / copyPos

Function copyPos

static/libs/codemirror.js:500–500  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

498function equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }
499
500function copyPos(x) {return Pos(x.line, x.ch)}
501function maxPos(a, b) { return cmp(a, b) < 0 ? b : a }
502function minPos(a, b) { return cmp(a, b) < 0 ? a : b }
503

Callers 2

codemirror.jsFile · 0.85
historyChangeFromChangeFunction · 0.85

Calls 1

PosFunction · 0.85

Tested by

no test coverage detected