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

Function addToRing

src/codemirror.js:8943–8946  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

8941
8942 var killRing = [];
8943 function addToRing(str) {
8944 killRing.push(str);
8945 if (killRing.length > 50) killRing.shift();
8946 }
8947 function growRingTop(str) {
8948 if (!killRing.length) return addToRing(str);
8949 killRing[killRing.length - 1] += str;

Callers 3

growRingTopFunction · 0.85
killFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected