Read and respond to this message at:
Yes of course! It's ridiculous to open a new file when we close all tabs. This
should just means the same as exit (notably because when you close a file that
was the single one used, the "new" empty file will have no use, but the user
won't notice that Notepad++ maintains the current working directory on the location
of the last open file: this effectively forbids (for example) deleting the directory
where the last file was open.
* create a new file save it alone in a new directory (this is typically what
many softwares are doing when creating log files or temporary files, and it
fails, leaving these files for user review).
* So open this file in notepad++ (this is what you would do to look at the log
file or temporary files left by a command that failed to execute: you open it
in an editor to see what was wrong, then you try correcting the situation).
* Then close that file. (you would typically do this after correcting the problem
discovered after reviewing the log files or temporary files left by some failing
command). Now Notepad++ should no longer have any link to the last open file
or its storage directory.
* Try deleting the directory containing the dummy file and all its content (this
is what you would do to cleanup the temporary files or log files left by a failing
command: all the files will effectively be deleted as expected, but as long
as Notepad++ is running, it won't let you delete the directory because Notepad++
is still using it as its current working directory, and Windows makes sure that
the working directory is locked by the process.
I do think that Notepad++ forgets to remove the directory change listener after
it closes the file, and still locks that directory. I do think this is a bug
in Notepad++: the editor should not lock things that he no longer uses or needs.
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: