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

Function resetModeState

static/mergely/lib/codemirror.js:243–252  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

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