(cm)
| 6 | // Used to get the editor into a consistent state again when options change. |
| 7 | |
| 8 | export function loadMode(cm) { |
| 9 | cm.doc.mode = getMode(cm.options, cm.doc.modeOption) |
| 10 | resetModeState(cm) |
| 11 | } |
| 12 | |
| 13 | export function resetModeState(cm) { |
| 14 | cm.doc.iter(line => { |
no test coverage detected