MacOS – Extra space being deleted after selecting a word

macostext input

Frequently I double-click to select a word, then press "delete". Recently it seems the behaviour somehow changed to also delete the space before the word. Is there a way to revert this?

For example (cursor is |, selection is #):

this is some text|

I double-click on "text":

this is some #text#|

Press delete:

this is some|

What I expected:

this is some |

Best Answer

This is by design. If you don’t want the space trimmed, use alt+delete to delete the word.

this is some text|

goes to

this is some |