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

Function findNextLine

static/editor.md/lib/codemirror/lib/codemirror.js:4640–4645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4638 var lineObj = getLine(doc, line);
4639 var possible = true;
4640 function findNextLine() {
4641 var l = line + dir;
4642 if (l < doc.first || l >= doc.first + doc.size) return (possible = false);
4643 line = l;
4644 return lineObj = getLine(doc, l);
4645 }
4646 function moveOnce(boundToLine) {
4647 var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
4648 if (next == null) {

Callers 1

moveOnceFunction · 0.70

Calls 1

getLineFunction · 0.70

Tested by

no test coverage detected