MCPcopy Create free account
hub / github.com/breck7/scroll / resetModeState

Function resetModeState

external/.scrollLibs.js:6464–6479  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

6462 }
6463
6464 function resetModeState(cm) {
6465 cm.doc.iter(function (line) {
6466 if (line.stateAfter) {
6467 line.stateAfter = null
6468 }
6469 if (line.styles) {
6470 line.styles = null
6471 }
6472 })
6473 cm.doc.modeFrontier = cm.doc.highlightFrontier = cm.doc.first
6474 startWorker(cm, 100)
6475 cm.state.modeGen++
6476 if (cm.curOp) {
6477 regChange(cm)
6478 }
6479 }
6480
6481 // DOCUMENT DATA STRUCTURE
6482

Callers 2

loadModeFunction · 0.85
defineOptionsFunction · 0.85

Calls 2

startWorkerFunction · 0.85
regChangeFunction · 0.85

Tested by

no test coverage detected