(cm)
| 9582 | } |
| 9583 | |
| 9584 | function leaveVimMode(cm) { |
| 9585 | cm.setOption('disableInput', false); |
| 9586 | cm.off('cursorActivity', onCursorActivity); |
| 9587 | CodeMirror.off(cm.getInputField(), 'paste', getOnPasteFn(cm)); |
| 9588 | cm.state.vim = null; |
| 9589 | } |
| 9590 | |
| 9591 | function detachVimMap(cm, next) { |
| 9592 | if (this == CodeMirror.keyMap.vim) |
no test coverage detected