MCPcopy Create free account
hub / github.com/TruthHun/BookStack / moveOnce

Function moveOnce

static/mergely/lib/codemirror.js:4825–4834  ·  view source on GitHub ↗
(boundToLine)

Source from the content-addressed store, hash-verified

4823 return lineObj = getLine(doc, l);
4824 }
4825 function moveOnce(boundToLine) {
4826 var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
4827 if (next == null) {
4828 if (!boundToLine && findNextLine()) {
4829 if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);
4830 else ch = dir < 0 ? lineObj.text.length : 0;
4831 } else return false
4832 } else ch = next;
4833 return true;
4834 }
4835
4836 if (unit == "char") {
4837 moveOnce()

Callers 1

findPosHFunction · 0.70

Calls 1

findNextLineFunction · 0.70

Tested by

no test coverage detected