MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / findNextLine

Function findNextLine

static/js/codemirror/codemirror.js:2524–2529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2522 var lineObj = getLine(doc, line);
2523 var possible = true;
2524 function findNextLine() {
2525 var l = line + dir;
2526 if (l < doc.first || l >= doc.first + doc.size) return (possible = false);
2527 line = l;
2528 return lineObj = getLine(doc, l);
2529 }
2530 function moveOnce(boundToLine) {
2531 var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
2532 if (next == null) {

Callers 1

moveOnceFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected