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

Function moveOnce

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1458–1464  ·  view source on GitHub ↗
(boundToLine)

Source from the content-addressed store, hash-verified

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;
1461 else return false;
1462 } else ch += dir;
1463 return true;
1464 }
1465 if (unit == "char") moveOnce();
1466 else if (unit == "column") moveOnce(true);
1467 else if (unit == "word") {

Callers 1

findPosHFunction · 0.70

Calls 1

findNextLineFunction · 0.70

Tested by

no test coverage detected