deleteSelection deletes any selected text, without adding to clipboard -- returns text deleted as text.Edit (nil if none)
()
| 322 | // deleteSelection deletes any selected text, without adding to clipboard -- |
| 323 | // returns text deleted as text.Edit (nil if none) |
| 324 | func (ed *Editor) deleteSelection() *text.Edit { |
| 325 | tbe := ed.Buffer.DeleteText(ed.SelectRegion.Start, ed.SelectRegion.End, EditSignal) |
| 326 | ed.SelectReset() |
| 327 | return tbe |
| 328 | } |
| 329 | |
| 330 | // Copy copies any selected text to the clipboard, and returns that text, |
| 331 | // optionally resetting the current selection |
no test coverage detected