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

Function getPrefix

src/codemirror.js:9042–9047  ·  view source on GitHub ↗
(cm, precise)

Source from the content-addressed store, hash-verified

9040 // Prefixes (only crudely supported)
9041
9042 function getPrefix(cm, precise) {
9043 var digits = cm.state.emacsPrefix;
9044 if (!digits) return precise ? null : 1;
9045 clearPrefix(cm);
9046 return digits == "-" ? -1 : Number(digits);
9047 }
9048
9049 function repeated(cmd) {
9050 var f = typeof cmd == "string" ? function(cm) { cm.execCommand(cmd); } : cmd;

Callers 4

repeatedFunction · 0.85
findEndFunction · 0.85
maybeDuplicateInputFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

clearPrefixFunction · 0.85

Tested by

no test coverage detected