MCPcopy
hub / github.com/witheve/Eve / leaveVimMode

Function leaveVimMode

src/codemirror.js:9584–9589  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

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)

Callers 1

detachVimMapFunction · 0.85

Calls 4

getOnPasteFnFunction · 0.85
setOptionMethod · 0.80
offMethod · 0.80
getInputFieldMethod · 0.80

Tested by

no test coverage detected