(cm)
| 260 | } |
| 261 | |
| 262 | function leaveVimMode(cm) { |
| 263 | cm.setOption('disableInput', false); |
| 264 | cm.off('cursorActivity', onCursorActivity); |
| 265 | CodeMirror.off(cm.getInputField(), 'paste', getOnPasteFn(cm)); |
| 266 | cm.state.vim = null; |
| 267 | } |
| 268 | |
| 269 | function detachVimMap(cm, next) { |
| 270 | if (this == CodeMirror.keyMap.vim) { |
no test coverage detected