(cm)
| 6457 | // Used to get the editor into a consistent state again when options change. |
| 6458 | |
| 6459 | function loadMode(cm) { |
| 6460 | cm.doc.mode = getMode(cm.options, cm.doc.modeOption) |
| 6461 | resetModeState(cm) |
| 6462 | } |
| 6463 | |
| 6464 | function resetModeState(cm) { |
| 6465 | cm.doc.iter(function (line) { |
no test coverage detected