(cm, prev)
| 279 | leaveVimMode(cm); |
| 280 | } |
| 281 | function attachVimMap(cm, prev) { |
| 282 | if (this == CodeMirror.keyMap.vim) { |
| 283 | CodeMirror.addClass(cm.getWrapperElement(), "cm-fat-cursor"); |
| 284 | if (cm.getOption("inputStyle") == "contenteditable" && document.body.style.caretColor != null) { |
| 285 | enableFatCursorMark(cm); |
| 286 | cm.getInputField().style.caretColor = "transparent"; |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | if (!prev || prev.attach != attachVimMap) |
| 291 | enterVimMode(cm); |
| 292 | } |
| 293 | |
| 294 | function updateFatCursorMark(cm) { |
| 295 | if (!cm.state.fatCursorMarks) return; |
nothing calls this directly
no test coverage detected