MCPcopy
hub / github.com/witheve/Eve / offsetCursor

Function offsetCursor

src/codemirror.js:11982–11988  ·  view source on GitHub ↗
(cur, offsetLine, offsetCh)

Source from the content-addressed store, hash-verified

11980 return ret;
11981 }
11982 function offsetCursor(cur, offsetLine, offsetCh) {
11983 if (typeof offsetLine === 'object') {
11984 offsetCh = offsetLine.ch;
11985 offsetLine = offsetLine.line;
11986 }
11987 return Pos(cur.line + offsetLine, cur.ch + offsetCh);
11988 }
11989 function getOffset(anchor, head) {
11990 return {
11991 line: head.line - anchor.line,

Callers 9

getOnPasteFnFunction · 0.85
handleKeyInsertModeFunction · 0.85
VimFunction · 0.85
selectForInsertFunction · 0.85
expandSelectionFunction · 0.85
makeCmSelectionFunction · 0.85
updateFakeCursorFunction · 0.85
handleExternalSelectionFunction · 0.85
repeatInsertModeChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected