When changing layers, keep insertion points in the original range

Signed-off-by: Bert Timmerman <bert.timmerman@xs4all.nl>