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

Function isLine

static/mergely/lib/codemirror.js:2100–2100  ·  view source on GitHub ↗
(doc, l)

Source from the content-addressed store, hash-verified

2098 else return pos;
2099 }
2100 function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size;}
2101 function clipPosArray(doc, array) {
2102 for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]);
2103 return out;

Callers 2

codemirror.jsFile · 0.70
stretchSpansOverChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected