MCPcopy Create free account
hub / github.com/TruthHun/BookStack / copyPos

Function copyPos

static/editor.md/lib/codemirror/lib/codemirror.js:1060–1060  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1058 var cmp = CodeMirror.cmpPos = function(a, b) { return a.line - b.line || a.ch - b.ch; };
1059
1060 function copyPos(x) {return Pos(x.line, x.ch);}
1061 function maxPos(a, b) { return cmp(a, b) < 0 ? b : a; }
1062 function minPos(a, b) { return cmp(a, b) < 0 ? a : b; }
1063

Callers 2

codemirror.jsFile · 0.70
historyChangeFromChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected