()
| 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() |
nothing calls this directly
no test coverage detected