MCPcopy Index your code
hub / github.com/csev/py4e / resetModeState

Function resetModeState

tools/pythonauto/static/codemirror/codemirror.js:206–215  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

204 }
205
206 function resetModeState(cm) {
207 cm.doc.iter(function(line) {
208 if (line.stateAfter) line.stateAfter = null;
209 if (line.styles) line.styles = null;
210 });
211 cm.doc.frontier = cm.doc.first;
212 startWorker(cm, 100);
213 cm.state.modeGen++;
214 if (cm.curOp) regChange(cm);
215 }
216
217 function wrappingChanged(cm) {
218 if (cm.options.lineWrapping) {

Callers 2

loadModeFunction · 0.70
codemirror.jsFile · 0.70

Calls 2

startWorkerFunction · 0.70
regChangeFunction · 0.70

Tested by

no test coverage detected