I can reproduce this.
1. Create a file C:Program FilesMyDirectorySample.txt (May need permissions)
2. Write some text into it and save it (Launch the editor in admin mode)
3. Open the file to check whether the contents were saved.
4. Now shift+delete MyDirectoy from C:Program Files
5. Repeat step 1 and 2. But in the second step write some other text.
6. Close and open the file. You can see the old contents only 🙁
Can anyone else please verify this?