MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / cursorIsBefore

Function cursorIsBefore

static/plugins/codemirror/keymap/vim.js:3005–3013  ·  view source on GitHub ↗
(cur1, cur2)

Source from the content-addressed store, hash-verified

3003 return cur1.ch == cur2.ch && cur1.line == cur2.line;
3004 }
3005 function cursorIsBefore(cur1, cur2) {
3006 if (cur1.line < cur2.line) {
3007 return true;
3008 }
3009 if (cur1.line == cur2.line && cur1.ch < cur2.ch) {
3010 return true;
3011 }
3012 return false;
3013 }
3014 function cursorMin(cur1, cur2) {
3015 if (arguments.length > 2) {
3016 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