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

Function resetModeState

tools/pythonauto/static/codemirrorepl/codemirror.js:245–254  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

243 }
244
245 function resetModeState(cm) {
246 cm.doc.iter(function(line) {
247 if (line.stateAfter) line.stateAfter = null;
248 if (line.styles) line.styles = null;
249 });
250 cm.doc.frontier = cm.doc.first;
251 startWorker(cm, 100);
252 cm.state.modeGen++;
253 if (cm.curOp) regChange(cm);
254 }
255
256 function wrappingChanged(cm) {
257 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