I'm playing around with this pull request and most of it looks pretty slick, but what's the purpose of this line? It seems wrong to bomb out all redos if a grouped undo is registered while not undoing or redoing.