Titlebar has mark but document will be closed with no question:

This behavior continues from original Notepad2 but I think question below must be shown.

Yes, current explicit behavior is (pseudo code):
if (no file name) # (new file):
if (empty or only contains spaces, tabs, and line-breaks):
close application w/o request for saving ...
Some more opinions to change this behavior?
Can you add option to ask before exit even file contains only whitespaces?
... and is "Untitled" (no file name given) - this is an additional condition for skipping the save requester.
So the explicit workflow in your use-case (_unnamed white-space only document_) would be to do an "Save as... F6" for forced saving ( instead of saving unintentionally a blank document named "Untitled" in current directory) :thinking: ?
More opinions ?
Oh! Untitled is not a real file. In first step I mean command "File -> New"
So the explicit workflow in your use-case (unnamed white-space only document) would be to do an "Save as... F6" for forced saving ( instead of saving unintentionally a blank document named "Untitled" in current directory) 馃 ?
Yes. New Untitled document with white spaces must be saved before close.
Yes. New Untitled document with white spaces must be saved before close.
My opinion, it must ask to: Save, don't Save or Cancel. 馃
Many other text editors do this.






My opinion, it must ask to: Save, don't Save or Cancel.
Agree
There must have been a reason for the 10 extra lines of "business logic" Flo has put into the FileSave() method to avoid the "Save changes" requester on "_blank unnamed documents_", which would appear normally if this document analysis would not be done ... :thinking: ???
Edit: "with blank spaces"
Many other text editors save a "unnamed documents with blank spaces" as "Untitled", "Untitled x" or "new x" 馃槈
Change:
If there are only empty lines (the doc consists of line-breaks only) it can be assumed as an "useless" document (except it got a Name).
So pressing ESC for Exit (if configured) leaves immediately.
If tabs or spaces are in, ask for saving... ?
Notepad3 wants to be smarter as "many other text editors" :wink:
Edited : https://github.com/rizonesoft/Notepad3/issues/1820#issuecomment-559514010
Notepad3 wants to be more polite and wants to ask for it: 馃ぃ 馃ぃ 馃ぃ
... I am going to write a "content analyzer" (like the encoding analyzer) and, if there is nonsense in the document, Notepad3 will wipe the corresponding file w/o inquiry. :rofl:
Content analyzer is ready: Feel free to test dev beta ver _5.19.1128.2691_BETA.
Content analyzer works as expected.
Most helpful comment
Content analyzer is ready: Feel free to test dev beta ver _5.19.1128.2691_BETA.