MCPcopy Index your code
hub / github.com/witheve/Eve / maybeDuplicateInput

Function maybeDuplicateInput

src/codemirror.js:9122–9129  ·  view source on GitHub ↗
(cm, event)

Source from the content-addressed store, hash-verified

9120 }
9121
9122 function maybeDuplicateInput(cm, event) {
9123 var dup = getPrefix(cm);
9124 if (dup > 1 && event.origin == "+input") {
9125 var one = event.text.join("\n"), txt = "";
9126 for (var i = 1; i < dup; ++i) txt += one;
9127 cm.replaceSelection(txt);
9128 }
9129 }
9130
9131 function addPrefixMap(cm) {
9132 cm.state.emacsPrefixMap = true;

Callers

nothing calls this directly

Calls 2

getPrefixFunction · 0.85
replaceSelectionMethod · 0.80

Tested by

no test coverage detected