MCPcopy Create free account
hub / github.com/witheve/Eve / getOffset

Function getOffset

src/codemirror.js:11989–11994  ·  view source on GitHub ↗
(anchor, head)

Source from the content-addressed store, hash-verified

11987 return Pos(cur.line + offsetLine, cur.ch + offsetCh);
11988 }
11989 function getOffset(anchor, head) {
11990 return {
11991 line: head.line - anchor.line,
11992 ch: head.line - anchor.line
11993 };
11994 }
11995 function commandMatches(keys, keyMap, context, inputState) {
11996 // Partial matches are not applied. They inform the key handler
11997 // that the current key sequence is a subsequence of a valid key

Callers 1

repeatInsertModeChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected