autosave undo history
Merge pull request #765 from roryk/upstream

autosave undo history