MCPcopy
hub / github.com/witheve/Eve / cursorIsBefore

Function cursorIsBefore

src/codemirror.js:12057–12065  ·  view source on GitHub ↗
(cur1, cur2)

Source from the content-addressed store, hash-verified

12055 return cur1.ch == cur2.ch && cur1.line == cur2.line;
12056 }
12057 function cursorIsBefore(cur1, cur2) {
12058 if (cur1.line < cur2.line) {
12059 return true;
12060 }
12061 if (cur1.line == cur2.line && cur1.ch < cur2.ch) {
12062 return true;
12063 }
12064 return false;
12065 }
12066 function cursorMin(cur1, cur2) {
12067 if (arguments.length > 2) {
12068 cur2 = cursorMin.apply(undefined, Array.prototype.slice.call(arguments, 1));

Callers 8

VimFunction · 0.85
cursorMinFunction · 0.85
cursorMaxFunction · 0.85
cursorIsBetweenFunction · 0.85
expandSelectionFunction · 0.85
makeCmSelectionFunction · 0.85
handleExternalSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected