MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / recordYank

Function recordYank

source code/utils/Cursor.ts:82–87  ·  view source on GitHub ↗
(start: number, length: number)

Source from the content-addressed store, hash-verified

80
81// Yank tracking for yank-pop
82export function recordYank(start: number, length: number): void {
83 lastYankStart = start
84 lastYankLength = length
85 lastActionWasYank = true
86 killRingIndex = 0
87}
88
89export function canYankPop(): boolean {
90 return lastActionWasYank && killRing.length > 1

Callers 2

handleKeyDownFunction · 0.85
yankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected