ignore empty selections when splitting a selection