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