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

Function resetModeState

src/codemirror.js:244–253  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

242 }
243
244 function resetModeState(cm) {
245 cm.doc.iter(function(line) {
246 if (line.stateAfter) line.stateAfter = null;
247 if (line.styles) line.styles = null;
248 });
249 cm.doc.frontier = cm.doc.first;
250 startWorker(cm, 100);
251 cm.state.modeGen++;
252 if (cm.curOp) regChange(cm);
253 }
254
255 function wrappingChanged(cm) {
256 if (cm.options.lineWrapping) {

Callers 2

loadModeFunction · 0.85
codemirror.jsFile · 0.85

Calls 2

startWorkerFunction · 0.85
regChangeFunction · 0.85

Tested by

no test coverage detected