MCPcopy Index your code
hub / github.com/csev/py4e / findNextLine

Function findNextLine

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1452–1457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1450 var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;
1451 var lineObj = getLine(line);
1452 function findNextLine() {
1453 for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {
1454 var lo = getLine(l);
1455 if (!lo.hidden) { line = l; lineObj = lo; return true; }
1456 }
1457 }
1458 function moveOnce(boundToLine) {
1459 if (ch == (dir < 0 ? 0 : lineObj.text.length)) {
1460 if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;

Callers 1

moveOnceFunction · 0.70

Calls 1

getLineFunction · 0.70

Tested by

no test coverage detected