MCPcopy Index your code
hub / github.com/codeaashu/claude-code / recordYank

Function recordYank

src/utils/Cursor.ts:80–85  ·  view source on GitHub ↗
(start: number, length: number)

Source from the content-addressed store, hash-verified

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

Callers 2

handleKeyDownFunction · 0.85
yankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected