(cm)
| 242 | } |
| 243 | |
| 244 | function resetModeState(cm) { |
| 245 | cm.doc.iter(function(line) { |
| 246 | if (line.stateAfter) line.stateAfter = null; |
| 247 | if (line.styles) line.styles = null; |
| 248 | }); |
| 249 | cm.doc.frontier = cm.doc.first; |
| 250 | startWorker(cm, 100); |
| 251 | cm.state.modeGen++; |
| 252 | if (cm.curOp) regChange(cm); |
| 253 | } |
| 254 | |
| 255 | function wrappingChanged(cm) { |
| 256 | if (cm.options.lineWrapping) { |
no test coverage detected