(cm)
| 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) { |
no test coverage detected