Adjust selection ranges before we insert the item so we don't mix the
new selection with the existing ones (reported by Eric Pouech).

1 file changed