(cm)
| 4621 | // Used to get the editor into a consistent state again when options change. |
| 4622 | |
| 4623 | function loadMode(cm) { |
| 4624 | cm.doc.mode = getMode(cm.options, cm.doc.modeOption); |
| 4625 | resetModeState(cm); |
| 4626 | } |
| 4627 | |
| 4628 | function resetModeState(cm) { |
| 4629 | cm.doc.iter(function (line) { |
no test coverage detected