Retain selection's head (as opposed to its end) on insertion

This makes a difference when an edit spans two excerpts and the selection
start won't necessarily be the same as the selection end after the edit.
e46d1549d6Antonio Scandurra committed on 6/6/2023, 8:12:15 AMparent23836eb
1 file changedLine totals unavailable