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

Function isLine

static/editor.md/lib/codemirror/lib/codemirror.js:2004–2004  ·  view source on GitHub ↗
(doc, l)

Source from the content-addressed store, hash-verified

2002 else return pos;
2003 }
2004 function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size;}
2005 function clipPosArray(doc, array) {
2006 for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]);
2007 return out;

Callers 2

codemirror.jsFile · 0.70
stretchSpansOverChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected