()
| 196 | } |
| 197 | |
| 198 | function yank(): Cursor { |
| 199 | const text = getLastKill() |
| 200 | if (text.length > 0) { |
| 201 | const startOffset = cursor.offset |
| 202 | const newCursor = cursor.insert(text) |
| 203 | recordYank(startOffset, text.length) |
| 204 | return newCursor |
| 205 | } |
| 206 | return cursor |
| 207 | } |
| 208 | |
| 209 | function handleYankPop(): Cursor { |
| 210 | const popResult = yankPop() |
nothing calls this directly
no test coverage detected