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

Function cursorMin

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

Source from the content-addressed store, hash-verified

3010 return false;
3011 }
3012 function cursorMin(cur1, cur2) {
3013 if (arguments.length > 2) {
3014 cur2 = cursorMin.apply(undefined, Array.prototype.slice.call(arguments, 1));
3015 }
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));

Callers 4

VimFunction · 0.85
expandSelectionFunction · 0.85
getHeadFunction · 0.85
handleExternalSelectionFunction · 0.85

Calls 3

cursorIsBeforeFunction · 0.85
applyMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected