now cursor remains before `end`