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

Function cursorIsBefore

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

Source from the content-addressed store, hash-verified

3001 return cur1.ch == cur2.ch && cur1.line == cur2.line;
3002 }
3003 function cursorIsBefore(cur1, cur2) {
3004 if (cur1.line < cur2.line) {
3005 return true;
3006 }
3007 if (cur1.line == cur2.line && cur1.ch < cur2.ch) {
3008 return true;
3009 }
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));

Callers 8

VimFunction · 0.85
cursorMinFunction · 0.85
cursorMaxFunction · 0.85
cursorIsBetweenFunction · 0.85
expandSelectionFunction · 0.85
makeCmSelectionFunction · 0.85
handleExternalSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected