MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getKillRingItem

Function getKillRingItem

src/utils/Cursor.ts:55–60  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

53}
54
55export function getKillRingItem(index: number): string {
56 if (killRing.length === 0) return ''
57 const normalizedIndex =
58 ((index % killRing.length) + killRing.length) % killRing.length
59 return killRing[normalizedIndex] ?? ''
60}
61
62export function getKillRingSize(): number {
63 return killRing.length

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected