top | item 47162622

(no title)

aggieNick02 | 4 days ago

The new notepad is a buggy embarrassment. When you disable the "Continue previous session" option you can very easily lose unsaved changes:

0) Set "When Notepad starts" option to "Start new session and discard unsaved changes"

1) New file

2) Type "abc" - note the "X" to close the file changes to a "O" (pretend that's a circle) to indicate unsaved changes

3) Save file - "O" changes back to "X"

4) Type "def" - "X" changes back to "O" because "def" is not on the file on disk

5) Undo, "def" disappears, "O" incorrectly remains...

6) Redo, "def" reappears, "O" incorrectly changes back to "X"

7) Close file. No prompt to save unsaved "def". Reopen file. "def" is gone

discuss

order

1718627440|4 days ago

5) is common across several other editors and you could argue about correct semantics, but yes 6) is obviously a bug.

aggieNick02|3 days ago

Agreed... 5) is minor and just the result of saying "We're not going to bother trying to track if a file goes from having unsaved changes to not as a result of undo/redo - once a file gets marked as having unsaved changes, the only way to 'clear' that is to save the file again."

That option is much better than getting the undo/redo vs unsaved changes tracking wrong and allowing unsaved changes to be easily lost, like notepad does. :-P