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

Function cursorMax

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

Source from the content-addressed store, hash-verified

3016 return cursorIsBefore(cur1, cur2) ? cur1 : cur2;
3017 }
3018 function cursorMax(cur1, cur2) {
3019 if (arguments.length > 2) {
3020 cur2 = cursorMax.apply(undefined, Array.prototype.slice.call(arguments, 1));
3021 }
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);

Callers 3

VimFunction · 0.85
expandSelectionFunction · 0.85
handleExternalSelectionFunction · 0.85

Calls 3

cursorIsBeforeFunction · 0.85
applyMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected