MCPcopy Index your code
hub / github.com/witheve/Eve / moveOnce

Function moveOnce

src/codemirror.js:4848–4857  ·  view source on GitHub ↗
(boundToLine)

Source from the content-addressed store, hash-verified

4846 return lineObj = getLine(doc, l);
4847 }
4848 function moveOnce(boundToLine) {
4849 var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
4850 if (next == null) {
4851 if (!boundToLine && findNextLine()) {
4852 if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);
4853 else ch = dir < 0 ? lineObj.text.length : 0;
4854 } else return false
4855 } else ch = next;
4856 return true;
4857 }
4858
4859 if (unit == "char") {
4860 moveOnce()

Callers 1

findPosHFunction · 0.85

Calls 1

findNextLineFunction · 0.85

Tested by

no test coverage detected