MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / cursorIsBetween

Function cursorIsBetween

lib/web/CodeMirror/keymap/vim.js:3024–3029  ·  view source on GitHub ↗
(cur1, cur2, cur3)

Source from the content-addressed store, hash-verified

3022 return cursorIsBefore(cur1, cur2) ? cur2 : cur1;
3023 }
3024 function cursorIsBetween(cur1, cur2, cur3) {
3025 // returns true if cur2 is between cur1 and cur3.
3026 var cur1before2 = cursorIsBefore(cur1, cur2);
3027 var cur2before3 = cursorIsBefore(cur2, cur3);
3028 return cur1before2 && cur2before3;
3029 }
3030 function lineLength(cm, lineNum) {
3031 return cm.getLine(lineNum).length;
3032 }

Callers 1

VimFunction · 0.85

Calls 1

cursorIsBeforeFunction · 0.85

Tested by

no test coverage detected