Don’t merge adjacent non-empty selections

This improves the behavior of #3433