Resolve :history with a copy of Editor.history

To prevent the actual history to be manipulated.