MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / offsetCursor

Function offsetCursor

src/cm/keymap/vim.js:723–725  ·  view source on GitHub ↗
(cm, line, ch)

Source from the content-addressed store, hash-verified

721 }
722
723 function offsetCursor(cm, line, ch) {
724 var cur = cm.getCursor(); return {line: cur.line + line, ch: cur.ch + ch};
725 }
726
727 // These are the motion commands we use for navigation and selection with
728 // certain other commands. All should return a cursor object.

Callers 1

vim.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…