Forgive me if this should be in the “Bug” section, but this has only happened this one time, so I’m wondering if it’s something I’ve done.
My cursor is at the end of a word. I try to delete just that word and the whole paragraph gets deleted. When I click “apple Z” to undo it, the paragraph returns and is highlighted as if I highlighted then deleted, which I haven’t.
Does this happen in other programs too? Try in TextEdit.
In short though, I can’t think of much that would cause this to happen. There aren’t even tools in the Mac text engine for deleting an entire paragraph. You can delete to the start of the soft-wrapped line with Cmd-delete, and you can delete to the end of the paragraph with Ctrl-k. The system isn’t really well thought out. There isn’t a way to delete to the beginning of the paragraph in opposition to Ctrl-k, and there isn’t anything to delete to the end of the soft line in opposition to Cmd-delete. There is nothing that deletes both forward and backward from the caret position. The only way to delete a paragraph is to press Opt-UpArrow, Shift-Opt-DownArrow, delete.
That’s why I ask about TextEdit, because this sounds like some kind of macro or add-on you’ve installed that is perhaps misconfigured.
I’m pretty sure they are on a Mac. On Windows, one wouldn’t use the ‘delete’ key to erase a word when their caret is positioned at the end of the word. They would refer to it as the backspace key. The delete key only deletes forward. But yeah, the tag says Windows. Can you confirm that, tealeaf7?
If you really used Cmd-Delete, that will delete the whole line, as Ioa said, not just the word–could that have been what happened? If it was just a regular “Delete” with no modifier, then it should’ve only deleted the last character of course.