MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / yank

Function yank

src/hooks/useTextInput.ts:199–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 function yank(): Cursor {
200 const text = getLastKill()
201 if (text.length > 0) {
202 const startOffset = cursor.offset
203 const newCursor = cursor.insert(text)
204 recordYank(startOffset, text.length)
205 return newCursor
206 }
207 return cursor
208 }
209
210 function handleYankPop(): Cursor {
211 const popResult = yankPop()

Callers

nothing calls this directly

Calls 3

getLastKillFunction · 0.85
recordYankFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected