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

Function offsetCursor

lib/web/CodeMirror/test/vim_test.js:337–339  ·  view source on GitHub ↗
(cur, offsetLine, offsetCh)

Source from the content-addressed store, hash-verified

335}
336
337function offsetCursor(cur, offsetLine, offsetCh) {
338 return new Pos(cur.line + offsetLine, cur.ch + offsetCh);
339}
340
341// Motion tests
342testMotion('|', '|', makeCursor(0, 0), makeCursor(0,4));

Callers 1

vim_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected