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

Function moveOnce

tools/pythonauto/static/codemirrorepl/codemirror.js:3713–3722  ·  view source on GitHub ↗
(boundToLine)

Source from the content-addressed store, hash-verified

3711 return lineObj = getLine(doc, l);
3712 }
3713 function moveOnce(boundToLine) {
3714 var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
3715 if (next == null) {
3716 if (!boundToLine && findNextLine()) {
3717 if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);
3718 else ch = dir < 0 ? lineObj.text.length : 0;
3719 } else return (possible = false);
3720 } else ch = next;
3721 return true;
3722 }
3723
3724 if (unit == "char") moveOnce();
3725 else if (unit == "column") moveOnce(true);

Callers 1

findPosHFunction · 0.70

Calls 1

findNextLineFunction · 0.70

Tested by

no test coverage detected