MCPcopy Create free account
hub / github.com/TruthHun/BookStack / moveTo

Function moveTo

static/editor.md/lib/codemirror/addon/tern/tern.js:404–410  ·  view source on GitHub ↗
(ts, curDoc, doc, start, end)

Source from the content-addressed store, hash-verified

402 }
403
404 function moveTo(ts, curDoc, doc, start, end) {
405 doc.doc.setSelection(start, end);
406 if (curDoc != doc && ts.options.switchToDoc) {
407 closeArgHints(ts);
408 ts.options.switchToDoc(doc.name, doc.doc);
409 }
410 }
411
412 // The {line,ch} representation of positions makes this rather awkward.
413 function findContext(doc, data) {

Callers 2

innerFunction · 0.85
jumpBackFunction · 0.85

Calls 1

closeArgHintsFunction · 0.85

Tested by

no test coverage detected