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

Function getPrefix

lib/web/CodeMirror/keymap/emacs.js:119–124  ·  view source on GitHub ↗
(cm, precise)

Source from the content-addressed store, hash-verified

117 // Prefixes (only crudely supported)
118
119 function getPrefix(cm, precise) {
120 var digits = cm.state.emacsPrefix;
121 if (!digits) return precise ? null : 1;
122 clearPrefix(cm);
123 return digits == "-" ? -1 : Number(digits);
124 }
125
126 function repeated(cmd) {
127 var f = typeof cmd == "string" ? function(cm) { cm.execCommand(cmd); } : cmd;

Callers 4

repeatedFunction · 0.85
findEndFunction · 0.85
maybeDuplicateInputFunction · 0.85
emacs.jsFile · 0.85

Calls 1

clearPrefixFunction · 0.85

Tested by

no test coverage detected