(cm)
| 4685 | // Used to get the editor into a consistent state again when options change. |
| 4686 | |
| 4687 | function loadMode(cm) { |
| 4688 | cm.doc.mode = getMode(cm.options, cm.doc.modeOption); |
| 4689 | resetModeState(cm); |
| 4690 | } |
| 4691 | |
| 4692 | function resetModeState(cm) { |
| 4693 | cm.doc.iter(function (line) { |
no test coverage detected