Preserve undo stack in editor on resetting contents from externally modified file
Merge pull request #3625 from ussuri/fix-setting-new-editor-content

Preserve undo stack in editor on resetting contents from externally modified file