With the new patch (0001-files-check-for-a-changed-disk-file-also-for-savefil.patch)
Behaviour 1: if the user uses --tempfile
and the file changed on disk
and user attempts exit by pressing "^x" and selecting option "Y" (Yes)
then the file buffer is written to the disk but nano does not exit.
This does not feels natural. Since you have to press "^x" a second time to exit nano.
Also this is different form the situation where --tempfile is not used
if the user does not use --tempfile
and the file changed on disk
and user attempts exit by pressing "^x" and selecting option "Yes"
then the file buffer is written to the disk and nano is stopped
Behaviour 2:
As you indicated:
if the user uses --tempfile
and the file changed on disk
and user attempts exit by pressing "^x" and selecting option "N" (No)
then nano does nothing exactly as if the user would select "^c" (Cancel)
This is also different from the situation where --tempfile is not used:
if the user uses --tempfile
and the file changed on disk
and user attempts exit by pressing "^x" and selecting option "N" (No)
then the file is not written to the drive and nano is exited
Question 1:
should nano have the same behavior:
when using --tempfile or not
and the user pressed "^x" then selects option "N" (No)?
Question 2:
should we make nano discard changes and exit when the user pressed "^x" then select option "N" (No)?