MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / yankPop

Function yankPop

src/utils/Cursor.ts:66–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66export function yankPop(): {
67 text: string
68 start: number
69 length: number
70} | null {
71 if (!lastActionWasYank || killRing.length <= 1) {
72 return null
73 }
74 // Cycle to next item in kill ring
75 killRingIndex = (killRingIndex + 1) % killRing.length
76 const text = killRing[killRingIndex] ?? ''
77 return { text, start: lastYankStart, length: lastYankLength }
78}
79
80export function updateYankLength(length: number): void {
81 lastYankLength = length

Callers 2

handleKeyDownFunction · 0.85
handleYankPopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected