Sets the passed in `range` onto the given `selection`, removing any previous selection