When you open NotePad++, it always loads the files that were not closed by hand last time.
I just wonder how can made NotePad++ not do this action.
I have searched all the settings.
Need I download the source code?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your configuration file might be corrupted (it happened to me when I upgrated not very properly to 4.1.1).
Manaully changing the option in config.xml fixed the problem for me, so you can try that too: open config.xml, that is located in your Notepad++ directory or in %APPDATA%\Notepad++ directory and find this line:
<GUIConfig name="RememberLastSession">yes</GUIConfig>
then change it to:
<GUIConfig name="RememberLastSession">no</GUIConfig>
If it is already 'no', than you have different problem.
Regards,
Rocky
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same issue. I've turned off that feature and the config.xml is set to "no". It won't open previous files, but if I go into the setttings, it's checked off. It's like it's not setting the checkbox correctly based on the value in the config file. Then if I close the settings window, it'll be turned on (yes). I have to go back and uncheck it and close the settings window. Again, if I open it up, it'll be re-checked. Not sure if this is a bug in 4.1.1 or something else going on with our systems. I removed Notepad++ completely (using Zipped bin version) and unregistered the expolorer context menu dll. Rebooted my system and unzipped the files back to a folder, then re-registered the context menu dll for explorer. Same issue.
Thanks,
FGump
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The "Remember the current session for next launch" checkbox works for me as a toggle. It is never set in 4.1.1 in the Preferences dialog. However, if I check it and click "Close", it toggles the yes/no in the config.xml file when I close Notepad++.
If the current session is remembered, checking that checkbox, closing the dialog, and then closing Notepad++ results in the "yes" in the config.xml entry changing to "no". Notepad++ then opens without the previous session.
Repeating the process will reverse the setting; "no" becomes "yes".
I am not using %APPDATA%. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I confirm that the "Remember the current session for next launch" checkbox bug has been fixed in 4.1.2, along with the Ruby overflow vulnerability and other tweaks/enhancements. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I agree that 4.1.2 has fixed this issue, however it presents another one where the "Don't draw underline" checkbox is ALWAYS checked no matter what you choose. As soon as you uncheck it and close/re-open Notepad++, it's checked again. Guess that'll be fixed in the next version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you open NotePad++, it always loads the files that were not closed by hand last time.
I just wonder how can made NotePad++ not do this action.
I have searched all the settings.
Need I download the source code?
In the Preferences settings you can turn off that.
Don
Mind elaborating on that? I can not see an option for this behavior. The only ones wheer I can guess it turns it off are:
Preferences:
Global:
Remember the last operation directory
Misc:
Remember the current session for next launch
Both are disabled, yet I still get documents showing up from the last time it was opened.
Your configuration file might be corrupted (it happened to me when I upgrated not very properly to 4.1.1).
Manaully changing the option in config.xml fixed the problem for me, so you can try that too: open config.xml, that is located in your Notepad++ directory or in %APPDATA%\Notepad++ directory and find this line:
<GUIConfig name="RememberLastSession">yes</GUIConfig>
then change it to:
<GUIConfig name="RememberLastSession">no</GUIConfig>
If it is already 'no', than you have different problem.
Regards,
Rocky
Yeah, unfortunately set to "no" already and it did not fix it. Thanks for the tip though. :)
I have the same issue. I've turned off that feature and the config.xml is set to "no". It won't open previous files, but if I go into the setttings, it's checked off. It's like it's not setting the checkbox correctly based on the value in the config file. Then if I close the settings window, it'll be turned on (yes). I have to go back and uncheck it and close the settings window. Again, if I open it up, it'll be re-checked. Not sure if this is a bug in 4.1.1 or something else going on with our systems. I removed Notepad++ completely (using Zipped bin version) and unregistered the expolorer context menu dll. Rebooted my system and unzipped the files back to a folder, then re-registered the context menu dll for explorer. Same issue.
Thanks,
FGump
The "Remember the current session for next launch" checkbox works for me as a toggle. It is never set in 4.1.1 in the Preferences dialog. However, if I check it and click "Close", it toggles the yes/no in the config.xml file when I close Notepad++.
If the current session is remembered, checking that checkbox, closing the dialog, and then closing Notepad++ results in the "yes" in the config.xml entry changing to "no". Notepad++ then opens without the previous session.
Repeating the process will reverse the setting; "no" becomes "yes".
I am not using %APPDATA%. --Joel
This bug is fixed in v4.1.2 which is already available.
Don
I confirm that the "Remember the current session for next launch" checkbox bug has been fixed in 4.1.2, along with the Ruby overflow vulnerability and other tweaks/enhancements. --Joel
I agree that 4.1.2 has fixed this issue, however it presents another one where the "Don't draw underline" checkbox is ALWAYS checked no matter what you choose. As soon as you uncheck it and close/re-open Notepad++, it's checked again. Guess that'll be fixed in the next version.
I confirm it. This bug will be fixed in the next version.
Don