MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / isFolded

Function isFolded

mini-code-edit/cm/lib/util/foldcode.js:156–162  ·  view source on GitHub ↗
(cm, n)

Source from the content-addressed store, hash-verified

154 if (markText == null) markText = '<div style="position: absolute; left: 2px; color:#600">&#x25bc;</div>%N%';
155
156 function isFolded(cm, n) {
157 for (var i = 0; i < folded.length; ++i) {
158 var start = cm.lineInfo(folded[i].start);
159 if (!start) folded.splice(i--, 1);
160 else if (start.line == n) return {pos: i, region: folded[i]};
161 }
162 }
163
164 function expand(cm, region) {
165 cm.clearMarker(region.start);

Callers 1

foldcode.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected