added delete to end of line
deleting only selection if selection is not empty
updated docstring
Merge pull request #2615 from adnelson/feature/delete-to-end-of-line

added delete to end of line