spelling: keep the cursor at end-of-line if it was there

This fixes https://savannah.gnu.org/bugs/?50415.
1 file changed