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

Function cursorIsBetween

src/codemirror.js:12078–12083  ·  view source on GitHub ↗
(cur1, cur2, cur3)

Source from the content-addressed store, hash-verified

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);
12081 var cur2before3 = cursorIsBefore(cur2, cur3);
12082 return cur1before2 && cur2before3;
12083 }
12084 function lineLength(cm, lineNum) {
12085 return cm.getLine(lineNum).length;
12086 }

Callers 1

VimFunction · 0.85

Calls 1

cursorIsBeforeFunction · 0.85

Tested by

no test coverage detected