MCPcopy
hub / github.com/witheve/Eve / lineStart

Function lineStart

src/codemirror.js:8649–8656  ·  view source on GitHub ↗
(cm, lineN)

Source from the content-addressed store, hash-verified

8647 }
8648
8649 function lineStart(cm, lineN) {
8650 var line = getLine(cm.doc, lineN);
8651 var visual = visualLine(line);
8652 if (visual != line) lineN = lineNo(visual);
8653 var order = getOrder(visual);
8654 var ch = !order ? 0 : order[0].level % 2 ? lineRight(visual) : lineLeft(visual);
8655 return Pos(lineN, ch);
8656 }
8657 function lineEnd(cm, lineN) {
8658 var merged, line = getLine(cm.doc, lineN);
8659 while (merged = collapsedSpanAtEnd(line)) {

Callers 2

codemirror.jsFile · 0.85
lineStartSmartFunction · 0.85

Calls 6

getLineFunction · 0.85
visualLineFunction · 0.85
lineNoFunction · 0.85
getOrderFunction · 0.85
lineRightFunction · 0.85
lineLeftFunction · 0.85

Tested by

no test coverage detected