In File Editor an unsaved file will revert if the device changes orientation

When a file has been edited in ‘File editor’ if it has not been saved, then the device, changes its orientation. The file will revert all changes to the latest saved file.
I noticed it when i ‘grab’ my computer to go check on a pin, while editing. I guess this is more of a Bug than a feature request.