MCPcopy Index your code
hub / github.com/witheve/Eve / cursorMax

Function cursorMax

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

Source from the content-addressed store, hash-verified

12070 return cursorIsBefore(cur1, cur2) ? cur1 : cur2;
12071 }
12072 function cursorMax(cur1, cur2) {
12073 if (arguments.length > 2) {
12074 cur2 = cursorMax.apply(undefined, Array.prototype.slice.call(arguments, 1));
12075 }
12076 return cursorIsBefore(cur1, cur2) ? cur2 : cur1;
12077 }
12078 function cursorIsBetween(cur1, cur2, cur3) {
12079 // returns true if cur2 is between cur1 and cur3.
12080 var cur1before2 = cursorIsBefore(cur1, cur2);

Callers 3

VimFunction · 0.85
expandSelectionFunction · 0.85
handleExternalSelectionFunction · 0.85

Calls 2

cursorIsBeforeFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected