(cm, next)
| 267 | } |
| 268 | |
| 269 | function detachVimMap(cm, next) { |
| 270 | if (this == CodeMirror.keyMap.vim) { |
| 271 | CodeMirror.rmClass(cm.getWrapperElement(), "cm-fat-cursor"); |
| 272 | if (cm.getOption("inputStyle") == "contenteditable" && document.body.style.caretColor != null) { |
| 273 | disableFatCursorMark(cm); |
| 274 | cm.getInputField().style.caretColor = ""; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | if (!next || next.attach != attachVimMap) |
| 279 | leaveVimMode(cm); |
| 280 | } |
| 281 | function attachVimMap(cm, prev) { |
| 282 | if (this == CodeMirror.keyMap.vim) { |
| 283 | CodeMirror.addClass(cm.getWrapperElement(), "cm-fat-cursor"); |
nothing calls this directly
no test coverage detected