And restore the cursor to this position when redoing the cut+insert. Also remove two unneeded conditions. This fully fixes https://savannah.gnu.org/bugs/?54466.