[Bug] Zone information is written on each file save
Describe the bug When a document is edited and saved in Notepads, the app writes Zone information to an alternate data stream in the file, something typically done when a file is downloaded from the internet or transferred from a network drive to help prevent accidental execution for security purposes.
To Reproduce
- Open a text file in Notepads, make changes, and the save the file.
- Open the properties window of the file in Windows Explorer.
- Observe that "This file came from another computer and might be blocked to help protect this computer." is written at the bottom of the window.
- The zone information can be viewed with the following terminal command:
notepad.exe file.txt:Zone.Identifier
Expected behavior Since the file isn't coming from another computer, this alternate data stream should not be created.
Screenshots
Desktop (please complete the following information):
- OS: Windows 11 24H2 26100.4652
- Version v1.5.6.0
Additional context When working on executable files, like batch scripts, this behavior causes a Windows Defender dialog to appear on execution on each new file change. Registry import files could also be used to test this.