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

Function offsetCursor

lib/web/CodeMirror/keymap/vim.js:2933–2939  ·  view source on GitHub ↗
(cur, offsetLine, offsetCh)

Source from the content-addressed store, hash-verified

2931 return ret;
2932 }
2933 function offsetCursor(cur, offsetLine, offsetCh) {
2934 if (typeof offsetLine === 'object') {
2935 offsetCh = offsetLine.ch;
2936 offsetLine = offsetLine.line;
2937 }
2938 return Pos(cur.line + offsetLine, cur.ch + offsetCh);
2939 }
2940 function commandMatches(keys, keyMap, context, inputState) {
2941 // Partial matches are not applied. They inform the key handler
2942 // that the current key sequence is a subsequence of a valid key

Callers 9

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

Calls 1

PosFunction · 0.50

Tested by

no test coverage detected