For rich text editing, undo should probably reset the scroll position and the cursor close the edit you're undoing.
I think reseting the time position would also make sense for video editing.
So basically, it's a way to get back as much as possible in the context you were at the time of the operation that is undone.