Set cursor after breaking nested nodes.