MCPcopy
hub / github.com/nwutils/nw-sample-apps / posLess

Function posLess

mini-code-edit/cm/lib/codemirror.js:2986–2986  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2984 // Operations on {line, ch} objects.
2985 function posEq(a, b) {return a.line == b.line && a.ch == b.ch;}
2986 function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);}
2987 function copyPos(x) {return {line: x.line, ch: x.ch};}
2988
2989 var escapeElement = document.createElement("pre");

Callers 6

onMouseDownFunction · 0.85
adjustPosFunction · 0.85
setSelectionUserFunction · 0.85
setSelectionFunction · 0.85
markTextFunction · 0.85
onContextMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected