MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / toCtxArray

Function toCtxArray

lib/web/CodeMirror/keymap/vim.js:769–771  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

767 // in the default key map. See TODO at bottom of function.
768 noremap: function(lhs, rhs, ctx) {
769 function toCtxArray(ctx) {
770 return ctx ? [ctx] : ['normal', 'insert', 'visual'];
771 }
772 var ctxsToMap = toCtxArray(ctx);
773 // Look through all actual defaults to find a map candidate.
774 var actualLength = defaultKeymap.length, origLength = defaultKeymapLength;

Callers 1

VimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected