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

Function copyPos

static/mergely/lib/codemirror.js:1087–1087  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1085 var cmp = CodeMirror.cmpPos = function(a, b) { return a.line - b.line || a.ch - b.ch; };
1086
1087 function copyPos(x) {return Pos(x.line, x.ch);}
1088 function maxPos(a, b) { return cmp(a, b) < 0 ? b : a; }
1089 function minPos(a, b) { return cmp(a, b) < 0 ? a : b; }
1090

Callers 2

codemirror.jsFile · 0.70
historyChangeFromChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected