MCPcopy Index your code
hub / github.com/DHTMLX/gantt / equalCursorPos

Function equalCursorPos

samples/common/codehighlight/codemirror.js:988–988  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

986 function cmp(a, b) { return a.line - b.line || a.ch - b.ch }
987
988 function equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }
989
990 function copyPos(x) {return Pos(x.line, x.ch)}
991 function maxPos(a, b) { return cmp(a, b) < 0 ? b : a }

Callers 2

codemirror.jsFile · 0.85
findPosHFunction · 0.85

Calls 1

cmpFunction · 0.85

Tested by

no test coverage detected