MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / lineLeft

Function lineLeft

static/js/codemirror/codemirror.js:5146–5146  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

5144 function bidiRight(part) { return part.level % 2 ? part.from : part.to; }
5145
5146 function lineLeft(line) { var order = getOrder(line); return order ? bidiLeft(order[0]) : 0; }
5147 function lineRight(line) {
5148 var order = getOrder(line);
5149 if (!order) return line.text.length;

Callers 3

coordsCharInnerFunction · 0.85
lineStartFunction · 0.85
lineEndFunction · 0.85

Calls 2

getOrderFunction · 0.85
bidiLeftFunction · 0.85

Tested by

no test coverage detected