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

Function jumpBack

static/editor.md/lib/codemirror/addon/tern/tern.js:398–402  ·  view source on GitHub ↗
(ts, cm)

Source from the content-addressed store, hash-verified

396 }
397
398 function jumpBack(ts, cm) {
399 var pos = ts.jumpStack.pop(), doc = pos && ts.docs[pos.file];
400 if (!doc) return;
401 moveTo(ts, findDoc(ts, cm.getDoc()), doc, pos.start, pos.end);
402 }
403
404 function moveTo(ts, curDoc, doc, start, end) {
405 doc.doc.setSelection(start, end);

Callers 1

tern.jsFile · 0.85

Calls 2

moveToFunction · 0.85
findDocFunction · 0.85

Tested by

no test coverage detected